Re: [eclipse-clp-users] Accessing Eclipse predicates

From: <mskala_at_...206...>
Date: Thu, 15 Aug 2013 22:19:41 -0500 (CDT)
On Thu, 15 Aug 2013, Volkan Unsal wrote:
> Being new to Eclipse, I am trying to understand some basic concepts. I don't
> understand why are some Eclipse predicates not available from inside loops.
> For example:
> # test.ecl
> main :-
>   (foreach(A,[1,2]) do
>       Z is string(A),
>       writeln( Z )
>     ).

It's nothing to do with loops.  "Z is string(A)" would be an error
outside a loop too; "is" is only for doing arithmetic.

> These are available from the command line when I query the data, but not
> from within the program. How do I do type checking on the variables if I
> can't use these...?

What exactly do you mean by "these"?  What are you typing on the
command line?

-- 
Matthew Skala
mskala_at_...206...                 People before principles.
http://ansuz.sooke.bc.ca/
Received on Fri Aug 16 2013 - 03:19:51 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST