Re: feature req: passing sequences

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

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 crashes 
This 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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu