lua-users home
lua-l archive

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


On Mon, Aug 19, 2013 at 9:50 AM, Hao Wu <wuhao.wise@gmail.com> wrote:
> out to be a so-good solution because implicit type conversion could give you
> the "wrong" result

Which is why Lua is so refreshing - very few implicit type conversions
(1 + "2" is one of the few warts it does have, I think)

> ostream& foo(ostream &os, Obj* obj) {
>    return os << obj;        // instead of os << *obj
> }

C++ people have all kinds of anxieties about the compiler telling them
their problems.  Test and see ;)