Caveats of using Trim in functions » Obsługa klienta » Forum
Forum

Forum



ПоискПоиск   Users   Rejestracja   Wejście
Dzisiaj: 07.04.2025 - 18:15:10
Strony:  1  

Caveats of using Trim in functions

Ogłoszenie

.
AutorWiadomość

fotoart

users




Statystyka:
Wiadomości: 5
Rejestracja: 19 mar 2013, 11:47

I was looking through some of the , and I saw a few cases where Trim isn't used very carefully. IMO, Trim's syntax--intended for editing convenience--is tricky to use robustly for general-purpose, user-defined functions. For example, let's say we wanted to write our own version of ApplyRange. Here's the naive approach: Code:

---------------------
http://lustrzanka.biz/
Wiadomość # 1 01.09.20 - 18:34:01
RE: Caveats of using Trim in functions

KKasia

users




Statystyka:
Wiadomości: 2
Rejestracja: 23 lip 2014, 15:56

After some experimentation, I've found a way to make it work... all JDL_ApplyRange() lines must be in reverse frame order: JDL_ApplyRange(1410,180975,"hdragc(coef_gain=1.5,freezer=1)") JDL_ApplyRange(0,710,"hdragc(coef_gain=1.5,freezer=1)") This arrangement works fine... I wonder why the former doesn't?

---------------------
Oferty pracy a przede wszytkim praca Wrocław. Możesz zagrać też w sudoku
Wiadomość # 2 01.09.20 - 18:43:29
RE: Caveats of using Trim in functions

Ali

users




Statystyka:
Wiadomości: 154
Rejestracja: 07 sie 2008, 16:42

Hm, that doesn't make any sense. I'm not familiar with hdragc, but maybe there's a bug in that filter that affects its behavior when called multiple times. Does it happen with other filters? Does the following work? Code:

---------------------
"TV Puls jest warta tego, żeby powalczyć o jej przyszłość i będziemy to robić" - powiedział Dariusz Dąbski, który po wycofaniu się Franciszkanów jest jedynym udziałowcem TV Puls. [br]
Wiadomość # 3 01.09.20 - 18:51:34
RE: Caveats of using Trim in functions



users




Statystyka:
Wiadomości:
Rejestracja:

---------------------
Wiadomość # 5 dzisiaj o godz 18:15
RE: Caveats of using Trim in functions
Please help me use the G4 software to archive on Superdrive : Poprzedni temat
Strony:  1  

Administrator zabronił gościom odpowiadać na wiadomości! Aby się zarejestrować, kliknij link: rejestr


Uczestnicy