What should happen here?

Ali Çehreli acehreli at yahoo.com
Sat Sep 25 01:08:06 UTC 2021


On 9/24/21 5:12 PM, Walter Bright wrote:

 > "non-lexical scoping"

 > live reference

Those are new concepts to me. :(

 > dead reference immediately after it is initialized

I am sure I have dead references in my D library that exposes a C API. 
If it works, it must be because I don't hit a GC cycle in my thin 
extern(C) function. (Single-threaded too.)

 > Do not conflate class destructors with struct destructors. The
 > latter follow RAII rules, the former does not.

Some people stress that fact by using the term "finalizer" for classes.

Ali



More information about the Digitalmars-d mailing list