For Programmers: Free Programming Magazines  


Home > Archive > Prolog > October 2004 > Newbie has problems...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Newbie has problems...
Tobias Mauderer

2004-10-01, 3:57 pm

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


Tobias Mauderer

2004-10-01, 3:57 pm

Sorry, it was a typing error. Of course I have to use ":-" instead of
":="... Now it works fine...

Tobias


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com