View previous topic :: View next topic |
Author |
Message |
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Tue Jun 09, 2009 12:36 am Post subject: Multiple assignments/var decls. |
|
|
I finally gave in to allowing Lua-style multiple assignments and variable declarations.
http://www.dsource.org/projects/minid/wiki/LanguageSpec2/Statements#Assignments
You can now initialize multiple variables like "local x, y = 1, 2". Normal assignments can be multiple as well, like "x, y = 1, 2", or my favorite, "x, y = y, x", which performs a swap
Yay. |
|
Back to top |
|
|
maustin
Joined: 15 Jun 2009 Posts: 10
|
Posted: Mon Jun 15, 2009 11:39 pm Post subject: |
|
|
Yay! |
|
Back to top |
|
|
maustin
Joined: 15 Jun 2009 Posts: 10
|
Posted: Mon Oct 12, 2009 6:39 pm Post subject: Re: Multiple assignments/var decls. |
|
|
Did I mention, yay!?? |
|
Back to top |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Mon Oct 12, 2009 8:11 pm Post subject: |
|
|
Double yay! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|