WitJakuczun wrote:Ok, I have checked this in pure ECLiPSe's prolog code. It
is also not working...
This is offtopic but maybe someone could explain me
why it is not working?
Maybe some conflicting operator definitions? Try:
Code: Select all
pmmbp:Desktop pmoura$ eclipse
ECLiPSe Constraint Logic Programming System [kernel]
Kernel and basic libraries copyright Cisco Systems, Inc.
and subject to the Cisco-style Mozilla Public Licence 1.1
(see legal/cmpl.txt or www.eclipse-clp.org/licence)
Source available at www.sourceforge.org/projects/eclipse-clp
GMP library copyright Free Software Foundation, see legal/lgpl.txt
For other libraries see their individual copyright notices
Version 5.10 #103 (i386_macosx), Mon Nov 26 15:44 2007
[eclipse 1]: ic:(V :: 0..1), writeq(V), asserta(v(V)).
WARNING: module 'ic' does not exist, loading library...
ic_kernel.eco loaded traceable 0 bytes in 0.01 seconds
linearize.eco loaded traceable 0 bytes in 0.01 seconds
ordset.eco loaded traceable 0 bytes in 0.00 seconds
ic_constraints.eco loaded traceable 0 bytes in 0.03 seconds
ic.eco loaded traceable 0 bytes in 0.00 seconds
ic_generic_interface.eco loaded traceable 0 bytes in 0.01 seconds
ic_search.eco loaded traceable 0 bytes in 0.01 seconds
ic.eco loaded traceable 0 bytes in 0.06 seconds
syntax error: illegal head in v(V{suspend : _1686, ic : ic(integer, 0.0, 1.0, undefined, [], [], [], [])})
_1683{suspend : _1686, ic : ic(integer, 0.0, 1.0, undefined, [], [], [], [])}Abort
I suggest you post the goal above to the ECLiPSE mailing list. Joachim or Kish should be able to clarify this issue.
Cheers,
Paulo