Confused about assignments

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Confused about assignments

Post by zorg »

The upside of it is that it's predictable; no matter how many results a function returns, you can always be sure, that if you have another value in the next "slot" after the function call, that won't be moved around. (including the case where the function doesn't return even one value)

That said, the negative example you gave pretty much highligts the reason why it works that way.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests