[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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