Re: CLP(FD): what is necessary?



On 2008-03-14, A.L <alewando@xxxxxxxxxx> wrote:
On 14 Mar 2008 13:31:56 GMT, Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
wrote:

On 2008-03-14, vscosta@xxxxxxxxx <vscosta@xxxxxxxxx> wrote:

Hi!

Well, you have my support :). I'd actually suggest adding a prolog
flag to disable evaluation of generic terms outside eval.

Added. No flag. I just agree this is better style. When Bart&Tom
finish their type checker we can flag the is/2 type errors and people
can wrap the victim variables in eval(Var).

Flags changing runtime behaviour are far more evil than evaluating
terms under is/2 :-)

OK, but what standard says about this? Does it say at all?...

Nothing. Many Prolog systems take the freedom to add more evaluable
functions. This is just one example. If you use it, it will work on
ECLiPSe, SWI-Prolog >= 5.6.53 and if I understand Vitor on the next
YAP release. On most other systems you get an exception. If there is
a good and portable type system for which having eval(_) is useful, it
will eventually get more popular and ISO standard. Dream dream ...

Cheers --- Jan
.



Relevant Pages

  • Re: Prolog doesnt give multiple solutions to my goal.
    ... That a ground toplevel query has an implicit cut at the end ... ... Its not so easy to find unless you get the idea it might be a prolog ... searching you find the flag prompt_alternatives_no_bindings(bool, ... After quite a bit of interactive Prolog usage, I never felt the urge to ...
    (comp.lang.prolog)
  • Re: CLP(FD): what is necessary?
    ... flag to disable evaluation of generic terms outside eval. ... finish their type checker we can flag the is/2 type errors and people ...
    (comp.lang.prolog)
  • Re: CLP(FD): what is necessary?
    ... flag to disable evaluation of generic terms outside eval. ... finish their type checker we can flag the is/2 type errors and people ...
    (comp.lang.prolog)
  • Re: Beginners questions
    ... I had a simplicistic view of of the top level interpreter loop, ... experience in writing a PROLOG interpreter early in 93... ... > Note that even with this flag, it will only prompt if Prolog thinks the ...
    (comp.lang.prolog)