Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday February 28, 2005
02:50 PM

Debugging AI::Prolog

[ #23428 ]

Version 0.63 of AI::Prolog is sitting on my hard drive, but will likely not be uploaded soon. I've increased its math abilities and have cleaned up the internals, but have decided to stop pushing out code until I can track down a nasty bug. Specifically, the following three line program has issues:

i_am_at(bedroom).
up   :- i_am_at(X),retract(i_am_at(X)),assert(i_am_at(bedroom)).
down :- i_am_at(X),retract(i_am_at(X)),assert(i_am_at(bed)).

I load that into the shell and as soon as I issue the 'down' command, it tells me it 'Can't call method "clause" on an undefined value'. I've loaded it into SWI-Prolog just to be sure I wasn't missing something obvious, but it worked fine there, so now I have a minimal test case that causes a bug that I suspect has cropped up in a few other places.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.