lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
From
: Andrew Starks <andrew.starks@
...
>
Date
: Thu, 12 Jun 2014 00:53:47 -0500
Apologies. I messed up the formatting in my example... not that it's worth two posts, mind you. :)
if v == 'value1'
then do_something()
elseif v == 'value2'
then do_something_else()
goto whatever
elseif v == 'value3
then do_another_thing()
else
::whatever::
do_whatever()
end
References
:
The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Andrew Starks
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Roberto Ierusalimschy
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Ross Bencina
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Roberto Ierusalimschy
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Paige DePol
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Thiago L.
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Sean Conner
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Coroutines
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
,
Andrew Starks
Prev by Date:
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
Next by Date:
Re: nil as lvalue (was Re: Proposal: Trailing comma in function calls)
Previous by thread:
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
Next by thread:
Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
Index(es):
Date
Thread