toString not working... (a bug in D?)

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Jan 16 05:16:43 PST 2007


Daniel Keep wrote:
> Ary Manzana wrote:
>> That's not very intuitive :-(
>>
>> Can't this be fixed? toString methods should be easy to work since 
>> they are widely used.
> 
> I can think of two ways:
> 
> 1) Allow for type extensions, or
[snip]
> as a consequence of how D's lookup rules work.  Personally, I think #1 
> above is the best long-term solution to this, as it allows you to more 
> obviously disambiguate what you're trying to say.

I agree that would be a nice thing to have. And it can't really be that 
hard to implement; it's already done for arrays, why not for other types?



More information about the Digitalmars-d mailing list