Code Comments
Programming Forum and web based access to our favorite programming groups.Hello,
I'm totally new in Prolog and I use BProlog. I get some errors ("Predeifined
predicate is redefined") with the following code:
hall_wet.
bathroom_dry.
window_closed.
leak_in_bathroom :=
hall_wet,
kitchen_dry.
problem_in_kitchen :=
hall_wet,
bathroom_dry.
no_water_from_outside :=
window_closed
;
no_rain.
leak_in_kitchen :=
problem_in_kitchen,
no_water_from_outside.
What's wrong???
Tobias
Post Follow-up to this messageSorry, it was a typing error. Of course I have to use ":-" instead of ":="... Now it works fine... Tobias
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.