[Issue 16519] toHexString always returns stack allocated string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 30 15:01:32 UTC 2019


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

berni44 <bugzilla at d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at d-ecke.de

--- Comment #5 from berni44 <bugzilla at d-ecke.de> ---
(In reply to Steven Schveighoffer from comment #2)
> toHexString should work on a static array without
> creating another static array.
> 
> So I'll leave this bug open.

What's wrong with this?

(In reply to Seb from comment #3)
> FWIW -dip1000 warns about this problem:
> 
> foo.d(8): Deprecation: slice of static array temporary returned by
> toHexString(hash) assigned to longer lived variable a

Can't find any information on when this deprecation cycle will end. Do you
know?

--


More information about the Digitalmars-d-bugs mailing list