lua-users home
lua-l archive

Re: Metamethods: fallbacks or overrides?

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


2014年08月18日 2:45 GMT+02:00 Thiago L. <fakedme@gmail.com>:
> Ouch... and we don't have a rawtostring()..
That would not help. It's fairly easy to code rawtostring in Lua,
but:
> print(rawtostring( "hello world" ))
bye bye
Reason: "print" calls tostring on every argument even if
it is already a string. io.write is necessary.
I'm adding "print" to my list of things that RLP's (Real Lua
Programmers) do not use.

AltStyle によって変換されたページ (->オリジナル) /