Re: This does not jive
- Posted by DerekParnell (admin) Sep 04, 2012
- 1788 views
EUWX said...
DerekParnell: In the above example,
drawRoundRect(split (x))
or
drawRoundRect(split (x , , 8))
should work, should it not?
No, it wouldn't work. The reason is that the drawRoundRect() routine requires eight integers and the split() function returns one sequence.
Your example is exactly equivalent to ...
sequence y y = split(x, , 8) drawRoundRect(y)
Currently, the language does not handle tuples (a set of arguments) as a datatype and thus there is no easy way to convert a sequence to a tuple. One has to do it manually.