o : MyObject (name == "something")
  eval(o.getProp("prop") == "val"))

I think will do what you want.

On 4/1/06, Yuesong Wang <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm doing something like this:
>
>   o : MyObject (name == "something")
>   MyObject (n : name -> (o.getProp("prop") == "val"))
>
> As you can see in the second condition, in order to
> use the predicate constraint, I have to bound an
> unrelated column. Is there a way to use the predicate
> constraint without the column binding?
>
> I know I can use eval, but put everything that is not
> a column in eval can get it really cluttered in a
> hurry.
>
> So I think it will be helper to be able to filter the
> facts based on a non-column, such as:
>
>   o : MyObejct (name == "something")
>   MyObject( -> (o.getProp("prop") == "val")
>
> better yet, without the "->", but I understand if
> there has to be something to indicate that it is a
> predicate constraint.
>
>
> Thanks,
>
> Yuesong
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Reply via email to