www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Rename std.string.toStringz?

reply Kagamin <spam here.lot> writes:
Daniel Gibson Wrote:

 This would be inconsistent with all other to implementations, as far as
 I know.

Inconsistency is the very reason for template specialization to exist.
Jun 17 2011
parent David Nadlinger <see klickverbot.at> writes:
On 6/17/11 3:24 PM, Kagamin wrote:
 Daniel Gibson Wrote:

 This would be inconsistent with all other to implementations, as far as
 I know.

Inconsistency is the very reason for template specialization to exist.

No, it would be inconsistent from a user's point of view, since for all other types, to!Foo(xyz) returns a Foo, and not something else. David
Jun 17 2011