Re: feature req: passing sequences
- Posted by andi49 Feb 15, 2015
- 1392 views
Hi
katsmeow said...
This illustrates the problem in as little code as possible:
object junk = get_position() position(junk[1],junk[2]) -- this works position(junk) -- this crashesThis bit me when trying to do a string execution unit too. Even though junk contains all the necessary parameters in the correct order, i cannot pass it to position(). And now it's biting at me when writing a console "gui" for my irc.e, altho in a simple way i can get around simply by typing twice as much code.
Can this situation please be changed?
Kat
include std/graphics.e atom x,y puts(1,"test") {x,y}=get_position() position(x,y-2) wait_key()
This allready works in Eu4.1, or maybe i do not understand the question.
Andreas