Instantiation of nested structs should be allowed outside their parent scope

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Tue Nov 9 12:59:08 UTC 2021


On Tuesday, 9 November 2021 at 01:54:44 UTC, Stanislav Blinov 
wrote:
> Throw? No, segfault like any other null dereference. Ain't no 
> harm in that. As compared to absolutely ruining generic code 
> for, frankly, no benefit, and numerous, NUMEROUS bugs and 
> "workarounds" that simply don't need to exist.

I'd rather have compiler throw errors rather than having yet 
another potential segfault in application which needs to be 
checked.



More information about the Digitalmars-d mailing list