SHIFT can be one array param instead list of single params
Status: Beta
Brought to you by:
m_schellens
SHIFT(array, 1,2,3 ...) is equivalent to SHIFT(array, [1,2,3 ... ])
a1 = SHIFT(DIST(128), 12, -5) --> OK
a2=SHIFT(DIST(128), [12, -5])
% SHIFT: Parameter must be a scalar or 1 element array in this context: <Expression> <INT Array<span="">[2]>
% Execution halted at: $MAIN$
It is not a very difficult bug (around line 4665 in "basic_fun.cpp")
but it is too late today ! Sorry !!
Alain
Diff:
I put an attenpt for this bug. But I have some troubles with basic tests in IDL (the doc. seems to be in contradiction with the results !!)
And who could give an exemple with SHIFT on OBJ and PTR types ?! Thanks
Alain
done in the CVS.
unfortunatelly, no clean test cases added ...
I do not understood the case with GDL_OBJ and GDL_PTR, examples welcome !!