[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lisp packages



---------- Forwarded message ----------
Date: Wed, 26 Sep 2001 16:10:07 -0700 (MST)
From: Terry Zimmerman <tzimmer@asu.edu>
To: thomas Kolling <Thomas.Kolling@asu.edu>
Reply-To: Terry Zimmerman <zim@asu.edu>
Subject: RE: Allegro question

On Tue, 25 Sep 2001, thomas Kolling wrote:

tK> I've loaded the 5.0 student version and when I run the sample-code.fasl with
tK> the example given:
tK> (time (rao::top-A* (list (make-node :state #2A((4 1 2)(7 6 3)(5 8 0)) :depth
tK> 0 :g-val 0)) #'rao::puz-goal-p #'rao::puz-expand #'rao::puz-f1-val))
tK> 
tK> I responds with 'MAKE-NODE' is an UNDEFINED-FUNCTION.  Could you please send
tK> me a proper input to run the code.  It gives the same error when I run the
tK> code you compiled for me to use with version 6.0.
tK> Thanks,
tK> Thomas


Rao's code is written within the "rao" package, whereas ACL Vers 6
defaults to the "cg-user" package for example.  Defining a package in Lisp 
is a means of limiting the scope of variables etc. similar to classes in
C++ or .h files you include in C.  To call/use his fcns and variables
either switch to the rao package with  (in-package :rao) or prefix all
calls to his routines with rao::  e.g. (rao::help) or (rao::make-node)

					terry


 ~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~
 terry zimmerman 
    arizona state university  
       zim@asu.edu  
         ~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~

       "Sadly, most of us today believe that a computer is of more use
         to us than a wiseman"                -John Cleese