Vesa Karvonen wrote:

> On Fri, Mar 7, 2008 at 5:48 PM, Andreas Rossberg
> <[EMAIL PROTECTED]> wrote:
>> Also, some libraries already replace allocation themselves, so that
>> it is not that easy to redirect. I believe that Gecode falls into
>> that category (Guido will correct me if I'm wrong).
>
> That would be evil.  The rule of thumb is that only the "module" that
> implements main should ever replace (the global) new/delete.

Gecode does all its allocation through malloc, but doesn't reimplement  
it.  It just "bundles" everything at a single place so that memory  
management can be reimplemented easily.  So this would actually be an  
option, to replace the Gecode allocation by a scheme that is GC aware.

Guido


_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users

Reply via email to