Redefining alien types on SBCL
- From: "Javier" <javuchi@xxxxxxxxx>
- Date: 31 Aug 2006 17:01:19 -0700
If I do this in slime-repl:
(define-alien-type nil (struct foo (str c-string)))
(define-alien-type nil
(struct foo
(a int)
(b (array (* (struct foo)) 100))))
(with-alien ((f (struct foo)))
(slot (deref (slot f 'b) 7) 'a))
and I got the error:
There is no slot named B in #<SB-ALIEN-INTERNALS:ALIEN-RECORD-TYPE
(STRUCT FOO
(STR
C-STRING))>.
This is an inconvenience because I'd like to experiment in the repl.
How can avoid this error?
Note: the same thing happens when redefining generic methods.
.
- Prev by Date: Re: Lets talk about GUI and sound libraries
- Next by Date: Re: POST (as opposed to GET) to a remote server from AllegroServe?
- Previous by thread: Re: How can "cons per call" be so different for these two very similar functions?
- Next by thread: File IO with unicode
- Index(es):
Relevant Pages
|
|