[m-dev.] for review: add lazy evaluation to library
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Mar 10 22:56:29 AEDT 1999
On 10-Mar-1999, Peter Schachte <schachte at cs.mu.OZ.AU> wrote:
> > :- pragma c_code(inst_cast(F::in) = (F2::out(lazy)),
> > [will_not_call_mercury, thread_safe], "F = F2;").
>
> Uh. There really ought to be a prettier way to do this....
Yes, particularly since C code doesn't have unification or mode checking --
the above should of course be "F2 = F" rather than "F = F2"!
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list