Re: Newbie - Nesting Predicates
From: Nick Wedd (nick_at_maproom.co.uk)
Date: 03/20/04
- Previous message: Michael D. Kersey: "Re: PSP"
- In reply to: Elisa: "Newbie - Nesting Predicates"
- Next in thread: Tom Breton: "Re: Newbie - Nesting Predicates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 20 Mar 2004 20:55:28 +0000
In message <820c4e9f.0403200501.392c470e@posting.google.com>, Elisa
<elisamehl@yahoo.com> writes
>Hi-
>
>I would like to be able to next predictes so as to avoid redundancy.
>
>For instance, I want to be able to predicate a trait and then
>predicate who observed that trait and when.
>
>I tried the following:
>happy(elisa).
>observed(garth,happy(elisa),2004).
This is valid Prolog.
>Prolog didn't recognize the "observed" predicate.
I don't understand "recognize". Are you using a version of Prolog which
requires predicates to be declared, such as Turbo-Prolog?
>Is nesting possible and if so, which direction could I go?
Nesting, as you describe, is possible.
>If it is not possible, is there a way to avoid redundancy in storing
>predicates?
Nick
-- Nick Wedd nick@maproom.co.uk
- Previous message: Michael D. Kersey: "Re: PSP"
- In reply to: Elisa: "Newbie - Nesting Predicates"
- Next in thread: Tom Breton: "Re: Newbie - Nesting Predicates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|