D2 toStringz Return Type
Steven Schveighoffer
schveiguy at yahoo.com
Sat Nov 8 00:02:31 PST 2008
"Andrei Alexandrescu" wrote
> Steven Schveighoffer wrote:
>> But you probably won't add it. That's ok, I don't use Phobos anyways.
>> I'll be sure to add an appropriate function to Tango while porting it to
>> D2.
>
> You may want to rethink before putting dangerous functions in widely-used
> libraries. Returning a writable zero-terminated char* is as dangerous as
> it gets, and fostering bad coding style too.
Nonsense. Tango currently has such a function with D 1.x, and I've never
heard of any issues with it. I think you have overblown the danger here.
-Steve
More information about the Digitalmars-d
mailing list