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
Party member
Posts: 2914
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary

Re: Confused about assignments

Post by zorg » Thu Sep 12, 2019 2:08 pm

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] and 36 guests