[Issue 12181] to!string fails on arrays of floats

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 16 05:18:26 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12181


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com
           Platform|x86_64                      |All
         OS/Version|Windows                     |All


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-16 05:18:25 PST ---
Typical workaround would be:

pragma(msg, to!string(x[]));

But this only works at runtime, at CT it's an error:

C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(1623): Error:
_snprintf cannot be interpreted at compile time, because it has no available
source code

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


More information about the Digitalmars-d-bugs mailing list