Static Array Idiom not working anymore.

Guillaume Piolat first.last at gmail.com
Tue Jun 12 15:01:13 UTC 2018


On Tuesday, 12 June 2018 at 14:44:12 UTC, Steven Schveighoffer 
wrote:
> What you are being told is that your memory is not being kept 
> around. Essentially what you had originally was a memory 
> corruption bug (yes, even before the deprecation happened). 
> Don't do that anymore!

And a reminder that this idiom exist because _you can't have 
static array literals under @nogc_, which is just strange (I know 
there are reasons, this was debated to death at the time).

When D makes a decision that isn't practical, the d-idioms page 
get one additional entry.


More information about the Digitalmars-d-learn mailing list