override to!string

spir denis.spir at gmail.com
Fri Feb 25 06:28:21 PST 2011


Hello,

Imagine I have the following custom type:
	alias float[] Numbers;

Is it possible to override to!string for Numbers so that it outputs eg like;
	(1.1 2.2 3.3)
?

I can indeed override/specialise toImpl or formatValue for the custom type, but 
those overrides are simply ignored (tested).

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list