-> operator

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

-> operator

fschmidt
Administrator
Changed Lua synatax found here:

http://www.lua.org/manual/5.2/manual.html#9

to:

functioncall ::=  prefixexp args | prefixexp ‘->’ prefixexp args

so these are the same:

a->fn(b)
fn(a,b)
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: -> operator

fschmidt
Administrator
done in rev 83
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: -> operator

fschmidt
Administrator
In reply to this post by fschmidt
I find that I never use this.  I use closures instead.  And this makes the parser more complicated.  So I will remove this.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: -> operator

fschmidt
Administrator
done in rev 207, closing
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture