Re: Newbie - Nesting Predicates

From: Nick Wedd (nick_at_maproom.co.uk)
Date: 03/20/04

  • Next message: Linux Man: "Four Easy Question"
    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
    

  • Next message: Linux Man: "Four Easy Question"

    Relevant Pages

    • Re: Newbie - Nesting Predicates
      ... elisamehl@yahoo.com writes: ... > I would like to be able to next predictes so as to avoid redundancy. ... > predicate who observed that trait and when. ... Works here on SWI Prolog. ...
      (comp.lang.prolog)
    • Newbie - Nesting Predicates
      ... I would like to be able to next predictes so as to avoid redundancy. ... I want to be able to predicate a trait and then ... Is nesting possible and if so, ... is there a way to avoid redundancy in storing ...
      (comp.lang.prolog)