digitalmars.D - User-Defined Literals in the D Programming Language
- Andrei Alexandrescu (3/3) Apr 06 2011 http://drdobbs.com/blogs/tools/229401068
- Adam D. Ruppe (2/3) Apr 06 2011 Looks like someone already did:
- Trass3r (8/9) Apr 06 2011 Nice article, but after reading the title I was actually expecting an
http://drdobbs.com/blogs/tools/229401068 Could someone post this to reddit? Thanks. Andrei
Apr 06 2011
Could someone post this to reddit? Thanks.Looks like someone already did: http://www.reddit.com/r/programming/comments/gk5ou/userdefined_literals_in_the_d_programming_language/
Apr 06 2011
http://drdobbs.com/blogs/tools/229401068Nice article, but after reading the title I was actually expecting an article more about real user-defined literals (and its quirks as we recently discussed in http://www.digitalmars.com/d/archives/digitalmars/D/user_defined_literals_132779.html) There even is a proposal to remove it from C++0x: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3250.html Maybe some more reasons for not having real user-defined literals could be given before explaining how to implement something like it in user code.
Apr 06 2011