A Riddle: what is wrong with this code using std.array.Appender?

FeepingCreature feepingcreature at gmail.com
Mon Mar 25 14:58:08 UTC 2019


class Class
{
     Appender!(int[]) app = null;
}

This is the most evil bug I've seen this year yet.

Hint: Appender is a struct, not a class. So what does "= null" 
do, when it appears as a default initializer?



More information about the Digitalmars-d mailing list