[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String indexing again
- From: Dirk Laurie <dpl@...>
- Date: Mon, 20 Dec 2010 10:01:38 +0200
>
> 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