What does assigning void mean?

mark mark at qtrac.eu
Thu Mar 5 07:47:03 UTC 2020


In Adam Ruppe's D Cookbook there're these lines in a ref counting 
example:

RefCountedObject o = void; // What does this mean/do?
o.data = new Implementation();
o.data.refcount = 1;

I don't understand the first line; could someone explain please?


More information about the Digitalmars-d-learn mailing list