Standard Library Concerns (Phobos / Tango)

Vladimir Panteleev thecybershadow at gmail.com
Thu Feb 7 07:56:28 PST 2008


On Thu, 07 Feb 2008 15:49:01 +0200, Michel Fortin <michel.fortin at michelf.com> wrote:

> Still tango.stdc.stringz, I wonder why the function to convert to a D string is called fromStringz... I can understand the function's name, but it just seem silly to not call it toString and take advantage of function overloading.

Try it. Function overloading across modules just doesn't work.
Even worse, if a function is declared private in one module, it will still collide with another public function of the same name - I guess that's a compiler bug.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list