WITH-SLOTS behavior

"Michael A. Koerber" <[email protected]> Wed, 7 Nov 2001 10:02:22 -0500
Newsgroups gmane.lisp.matlisp.devel
Message-ID <[email protected]>
Hello all,

1. I have noticed that WITH-SLOTS used in conjunction with Matlisp and
an object defined by DEFSTRUCT doesn't always find the requested
slots.  For example...if I start in package :USER all is well.

  (IN-PACKAGE :USER)
  
  ;;; a bunch of code to DEFSTRUCT etc
  
  (DEFUN DO-SOMETHING (PD)
    (WITH-SLOTS (HEADING PITCH GPS-LATITUDE GPS-LONGITUDE) PD
		...))
  
  (DO-SOMETHING A-PD) ; and all is well...no problems

If I restart lisp (actually matlisp) and start in a different package, 
WITH-SLOTS will fail.  E.G.,

  (IN-PACKAGE :MATLISP-USER)
  
  ;;; everything else is the same up to 
  
  (DO-SOMETHING A-PD) ; and this time I get approx: "NO OBJECT WITH SLOT NAMED PITCH"

This can't be an expected result...whats going wrong here?

mike

-- 
-------------------------------------------------------------------
Dr Michael A. Koerber       We child proofed our home 3 years ago 
MIT/Lincoln Laboratory      and they're still getting in!         
[email protected]