Rename std.string.toStringz?

David Nadlinger see at klickverbot.at
Fri Jun 17 06:20:58 PDT 2011


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


More information about the Digitalmars-d mailing list