[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange record behavior in MCL2.0B1P2 (system 7) (again)
- To: cartier@math.uqam.ca (Guillaume Cartier)
- Subject: Re: strange record behavior in MCL2.0B1P2 (system 7) (again)
- From: alms (Andrew LM Shalit)
- Date: Wed, 12 Jun 91 16:30:43
- Cc: info-macl@cambridge.apple.com (Macintosh Allegro Common Lisp)
> From: cartier@math.uqam.ca (Guillaume Cartier)
> Subject: strange record behavior in MCL2.0B1P2 (system 7) (again)
>
> > You cannot simply pretend that something is a pointer and not a
handle.
> > You have to actually make it a pointer. You get a pointer from a
handle
> > by dereferencing it.
> >
> > If a bitmap is a handle, then you cannot say:
> >
> > (rref b :bitmap.bounds :storage :pointer)
> >
> > You must say
> >
> > (with-dereferenced-handles ((b-pointer b))
> > (rref b :bitmap.bounds :storage :pointer))
> >
> > Of course, if you do this and the handle is then relocated, you
will
> > lose.
>
> But (make-bitmap 0 0 10 10) returns a pointer!!!
>
> ? (setq b (make-bitmap 0 0 10 10))
> #<A Mac Zone Pointer Size 34 #x18D240>
>
> Guillaume Cartier
> LACIM, Universite du Quebec a Montreal.
> Bureau: (514) 987-4290
> E-Mail: cartier@math.uqam.ca
>
>
In that case, it sounds like there is a bug in make-bitmap or in the
record definition of bitmaps!