[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange record behavior in MCL2.0B1P2 (system 7) (again)
- To: email@example.com (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: firstname.lastname@example.org (Macintosh Allegro Common Lisp)
> From: email@example.com (Guillaume Cartier)
> Subject: strange record behavior in MCL2.0B1P2 (system 7) (again)
> > You cannot simply pretend that something is a pointer and not a
> > You have to actually make it a pointer. You get a pointer from a
> > 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
> > 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: firstname.lastname@example.org
In that case, it sounds like there is a bug in make-bitmap or in the
record definition of bitmaps!