Subject: [clisp-list] Problem with ffi:foreign-pointer

From: Roland Averkamp <[email-masked]>
Date: Wed Sep 10 14:34:11 2003

Hello,
I am using clisp-2.31 and did the following at the prompt:

[17]> (ffi:unsigned-foreign-address 65535)
#<FOREIGN-ADDRESS #x0000FFFF>
[18]> (ffi:foreign-pointer (ffi:unsigned-foreign-address 65535))
#<FOREIGN-POINTER #x00000000>
[19]> (ffi:foreign-address (ffi:foreign-pointer
(ffi:unsigned-foreign-address 65535)))
#<FOREIGN-ADDRESS #x00000000>
[20]> 

I would have expected as results #<FOREIGN-POINTER #x0000ffff> and
#<FOREIGN-ADDRESS #x0000ffff>

It think that in file foreign.d in function foreign_pointer the base of the
foreign-address object is ignored.

Bye,
Roland

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post