How to create nogc code?

Adam Sansier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 10 17:37:39 PDT 2016


Also, When dealing with a complex tree like structure, is there 
an easy way to recursively free it by free'ing all the sub 
elements?

Also, since I'm dealing with simple structs and strings, maybe I 
more intelligent string type can be used? One that uses opAssign 
to do reference counting? I imagine that the only time there are 
issues is during assignment, in most cases?








More information about the Digitalmars-d-learn mailing list