www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Inference of GC allocation scope

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
Are there any plans on a compiler pass that finds scoped 
GC-allocations and makes their destructors deterministic similar 
to D's struct scope behaviour?
Nov 16 2017
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Thursday, 16 November 2017 at 17:29:56 UTC, Nordlöw wrote:
 Are there any plans on a compiler pass that finds scoped 
 GC-allocations and makes their destructors deterministic 
 similar to D's struct scope behaviour?
https://github.com/ldc-developers/ldc/blob/master/gen/passes/GarbageCollect2Stack.cpp
Nov 16 2017
parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Thursday, 16 November 2017 at 17:39:02 UTC, Petar Kirov 
[ZombineDev] wrote:
 https://github.com/ldc-developers/ldc/blob/master/gen/passes/GarbageCollect2Stack.cpp
Does this include GC allocations that don't fit on stack?
Nov 16 2017