iPhone vs Android

Lurker via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 13 16:23:47 PDT 2016


On Tuesday, 13 September 2016 at 22:19:54 UTC, Jonathan M Davis 
wrote:
> So, I really think that we need to find a way to make it so 
> that exceptions aren't GC allocated normally anymore - or at 
> least have a way to reasonably and easily not be GC allocated - 
> but the problem is @nogc, not the actual memory management or 
> its cost.
>
> - Jonathan M Davis

Introduce RefCountedException?

Also that the pattern almost always is "throw new" and *very* 
rarely it is "Exception e = new ...; throw e;". I think we might 
be able to take advantage of that (e.g. "throw new E" could be a 
special case of "new" that allocates on some sort of "Exception" 
heap that is manually managed, or recognize RefCountedException).


More information about the Digitalmars-d mailing list