Re: Metamethods: fallbacks or overrides?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Metamethods: fallbacks or overrides?
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2014年8月18日 07:43:02 +0200
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.