Segfault when writing to module-scope dynamic array

rombankzero bogomancer at gmail.com
Mon Nov 18 13:38:34 UTC 2019


On Monday, 18 November 2019 at 13:28:26 UTC, Adam D. Ruppe wrote:
> But it is rare and if you aren't specifically looking for it 
> knowing the details, it isn't right. And since the syntax looks 
> so normal it trips up a LOT of people.
>
> I think the compiler should probably start to error on it, and 
> if you know what you're doing, maybe mark it special somehow. 
> idk.

Well, my fingers are singed. I'll know not to do that again, for 
what it's worth :)


More information about the Digitalmars-d-learn mailing list