--
/* Upcast */
IHuman liux0229 = new Chinese(1984.12.01.CE, China.Sichuan.Meishan);
/* Program to abstraction */
liux0229.live(LivingMode.Happily);
> Below is a variation of the code above but the clips sys. complains
> about variable undefine.
> please help me out here .thanks
> (defrule position
> (or
> (and
> (play TOP ?tmp&~0&1)
> (play CENTER 1)
> (play BOTTOM 1))
> )
> =>
> (printout t ?tmp crlf)
> )
How far off, from what you want, is the code that Gary suggested?
I'm having trouble understanding what you want to do from your example
and your descriptions. For example, how come you're using (or ...) and
(and ...) here? And, why are you using two connective constraints (~0
and 1) and a variable in the first pattern-CE?
BR
Johan Lindberg
jo...@pulp.se