Templates and stringof...

David Nadlinger see at klickverbot.at
Fri Aug 3 15:50:53 PDT 2012


On Friday, 3 August 2012 at 22:44:28 UTC, Andrej Mitrovic wrote:
> On 8/4/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>> Courtesy of Philippe Sigaud, slightly edited to my style:
>
> In fact, this should really be put into Phobos so everyone can 
> benefit
> rather than implementing this internally as a private template 
> of
> bitmanip.

No, it shouldn't be. There are almost no legit use cases for it, 
and having it in the library encourages abuse of string 
mixins/stringof in cases like this one.


More information about the Digitalmars-d-learn mailing list