lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> >That being said, theoretically, you could write code like:
> >
> >print(55:sin())
> >print(55:tostring())
> >
> >These statements stopped compiling in Lua 4.1 work3, 
> although it worked 
> >in my LuaState C++ distribution that tracked 4.1 Alpha.
> 
> Although they will not execute, they can be written as 
> (55):sin(). --lhf

I'm now saying it is a big deal.  It's something I'd never use (at
least, not that I can think of).  Still, it is very interesting that
Microsoft's C# chose to let statements like the above work.  I'm not
sure of the reasoning, but I thought it was cool that it once worked in
Lua, too.

Josh