[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: String access & metamethods
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 12 Dec 2007 20:27:12 -0200
> OK, so that's just brilliant, and was exactly what I was looking for. Now
> the question is, what am I potentially getting myself into by overwriting
> the __tostring metamethod?
The __tostring metamethod is only used in print and in tostring; it's not
a core metamethod. I'm not sure this answers your question but there it is.