lua-users home
lua-l archive

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


> 
> I was once very fond of the idea of overloading __call for strings, to
> be a sub replacement, but I really can't see it now as good
> engineering practice.
> 
Yes, overloading __call easily leads to programs unreadable even to
the author.  I reserve it now for constructors of classes, a la C++.
> 
> Lua strings are not containers for characters. It's easy enough to
> create a special type for that if needed.
>
I suppose that is the portable way.  OK, I'll shut up on this topic 
now.

Dirk