Re: This does not jive

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu