[eclipse-clp-users] Problem of Collections.EMPTY_LIST.

From: ¨}À· ©P <allmylifeallmylove_at_yahoo.com.tw>
Date: Thu, 10 Jun 2010 02:06:57 +0800 (CST)
hello, everyone!
I am meeting some problem when I am using ECLiPSe to solving problem.
The problem is I can't distinguish any arg of CompoundTerm is that a list or a empty list?
I tried many ways to comparing, but I am failed at all.
Which way I should used correctly?
I wrote this line(of course, I run compile and query in eclipse.rpc first),
" if((((CompoundTerm)(CompoundTerm)result.arg(i)).arg(j)==(Collections.EMPTY_LIST))) ",
and it's always return true.
Why???
Can you give me some hint???
                                                                                                                Best regards.



      
Received on Wed Jun 09 2010 - 18:07:07 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET