toString issue

Vladimir Kulev me at lightoze.net
Sat Sep 30 07:27:35 PDT 2006


Hasan Aljudy wrote:
> I totally disagree, what consistency are you talking about?
> toString and toHash are *not* operators, so prefixing them with op is
> misleading and inconsistent.

This methods are implied for all objects, so you can use them as well as
other unary operators like ~, excepting there are no special symbols for
them.

Anyway, Object.toString and std.string.toString collision should be
resolved, and renaming second one is also suitable for me.



More information about the Digitalmars-d mailing list