Are stack+heap classes possible in D?

FujiBar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 13 17:52:18 PDT 2015


I have read that in D structs are always allocated on the stack 
while classes are always allocated on the heap. Well, I often 
have classes where I want some instances on the stack, some on 
the heap. So.. what to do?


More information about the Digitalmars-d-learn mailing list