generic + numeric + literals = abomination

bearophile bearophileHUGS at lycos.com
Sat Mar 27 04:52:28 PDT 2010


so:
> Since D is superb, i like to know how you do it in D.
> If you got a better idea in C++, i would like to hear that too!

You know there are float literal too, in C++/D, like: 5.5f
I don't think D can help you more than C++ here.
Can you explain better what the problem is and what kind of solution you would like?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list