[Issue 16519] toHexString always returns stack allocated string

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 21 13:27:09 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16519

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=12625

--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
The underlying issue is the allowance to slice a static array RValue, which can
never be valid. This is issue 12625.

Now, we may fix this, and then what happens is that your code that compiled
before now doesn't compile with the same message as the "bad" version. But
that's not good either. toHexString should work on a static array without
creating another static array.

So I'll leave this bug open.

--


More information about the Digitalmars-d-bugs mailing list