lua-users home
lua-l archive

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


On 8/13/07, Adrien de Croy <adrien@qbik.com> wrote:
>
> So is it more intuitive, if you wish to copy an object, to write A=B, or
> is it more intuitive to write A.Assign(B), or B.CopyTo(A)?

I guess that depends on your intuition.

> IMO, someone that writes A = B wants A to be B, not A to be another
> reference to B (which is pretty much pointless, since you already have B).

_Vastly_ unmerited assumption.

Take a look at Metalua; it's a fantastic package, and you can use it
to extend the syntax to your heart's content.  It's pretty young, but
still you might be able to use it to create a DSL that works for your
users.

-gregg