Re: ;;; An error occurred in function CSTRUCT-SLOT-INFO:

"smallhairytroll" <[email protected]> Sun, 07 Dec 2003 23:01:49 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
--- In [email protected], "Chris Double" <chris.double@d...>
wrote:
> On Sun, 07 Dec 2003 22:26:34 -0000, "smallhairytroll"
> <lcluke@h...> said:
> > 
> > (setf (ct:cref sdl:SDL_Rect rectangle x) (random width))
> 
> I believe this needs to be something like:
> 
> (setf (ct:cref sdl:SDL_Rect rectangle sdl:x) (random width))
> 
> ie. The struct field names need to be prefixed by the package.

Hi Chris,

I had tried this approach. But because X is not exported I get the
following error:

;;; An error occurred in function CREATE-SYMBOL-FROM-CHARS:
;;; Error: The symbol X is not exported by package SDL

Which makes sense. However I don't really want to have to go back and
manually export each variable in each struct (shouldn't exporting the
struct be enough?)

I'm still curious as to why X cannot be found when (setf) is used, but
X is found when accessing the struct.

-Luke


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/