[dmd-internals] Throwing Errors

Leandro Lucarella luca at llucax.com.ar
Sat Mar 17 03:37:16 PDT 2012


Walter Bright, el 15 de marzo a las 16:57 me escribiste:
> On 3/15/2012 2:22 PM, Leandro Lucarella wrote:
> >Walter Bright, el 14 de marzo a las 16:45 me escribiste:
> >>OutOfMemory is deliberately made not recoverable, as I've almost
> >>never seen any application that can successfully recover from it.
> >>Making it non-recoverable also means that pure functions can
> >>allocate memory.
> >Really? It seems that you never worked in a memory constrained system.
> >There are applications that *really* need to take care about this.
> >
> >Even you say *almost*, so I guess you actually acknowledge their
> >existence. If you go this route, please know that you'll make
> >D a language not suitable for this king of applications.
> 
> If the memory constrained systems are that tight, they won't be able
> to use the GC anyway - they'll have to use malloc(), and what to do
> on malloc() failures is entirely up to the programmer.

Well, you know that avoiding the GC in D is not particularly easy, as
there are so many hidden allocations...

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Bald men with no jobs and no money who live with their parents don't
approach strange women.
	-- George Constanza


More information about the dmd-internals mailing list