[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Iteratively calling Prolog from C

From: Manuel Carro
Subject: Re: Iteratively calling Prolog from C
Date: Wed, 16 Jul 2003 19:52:55 +0200

>> Well, without knowing exactly what you are trying to
>> accomplish with recursion, may I venture to suggest that
>> you replace the recursive loop with a repeat-fail type loop
>> (using accumulator variables to store results over
>> backtracking)? Here you get garbage collection for free.
>> You'll find a number of examples on my website:

    Accumulator variables won't help you on backtracking.  Maybe you
mean dynamic predicates?  Which example were you referring to?

|Manuel Carro -- Facultad de Informática -- U. Politécnica de Madrid (UPM) |
|mcarro_at_fi_dot_upm_dot_es --- Ph: +34-91336-7455 --- FAX: +34-91336-7412|
| ---|

reply via email to

[Prev in Thread] Current Thread [Next in Thread]