¨}À· ©P wrote: > 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??? I am not sure, but I would expect that you have to convert the CompoundTerm to a Collection before doing the comparison. -- JoachimReceived on Thu Jun 10 2010 - 10:39:01 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST