[m-dev.] ODBC interface

Peter Schachte pets at students.cs.mu.oz.au
Thu Oct 2 11:29:18 AEST 1997


On Thu, 2 Oct 1997, Simon Taylor wrote:

> >  In addition, with the new implementation of builtin_aggregate(),
> >  the heap and the solutions_heap may have been swapped.
> >  If so, then they need to be unswapped.
> >  Perhaps the simplest way of handling this is to also save/restore
> >  solutions_heap_pointer, heap_zone, and solutions_heap_zone.
> 
> This can be left up to the caller as well. It isn't a problem
> for the ODBC interface since the threaded odbc__states ensure
> that an exception can't happen within builtin_aggregate.

I don't know anything about the ODBC interface or exceptions, so I may be
way off on this, but I don't see how threading odbc_states ensures that an
exception can't happen within builtin_aggregate.  You could pass an
odbc_state as (part of) the accumulator.  This might be useful to fill a
database with the solutions to some nondet goal.


-Peter Schachte      URL:  http://www.cs.mu.oz.au/~pets/
pets at cs.mu.OZ.AU     PGP:  finger pets at 128.250.37.150 for key
    Do insects spend hours demammaling their programs?




More information about the developers mailing list