lua-users home
lua-l archive

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

On Jan 26, 2006, at 04:01, Zakaria wrote:

Is that lua?

I would hope so :)

what version?

In 5.1, you can use the colon notation with strings. aString:reverse() is equivalent to string.reverse( aString ). The string package being the metatable of strings.

I wish the same was true for numbers and the math package so one could write aNumber:floor() instead of math.floor( aNumber )...


PA, Onnay Equitursay