[Issue 8231] conv.to fails to convert string with trailing "u"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 17 15:39:28 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8231


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #3 from bearophile_hugs at eml.cc 2013-06-17 15:39:28 PDT ---
Both converting regular numbers and converting D literals to their values are
important needs and use cases, but mixing them transparently is probably a not
so good idea.

So better to give it a different function name or to add some compile-time
argument to tell apart the two cases, as Comment #2 says.

D number literals also allow underscores: 1_000_000u

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list