John Pallister | 2 Aug 2007 06:19
Favicon

Re: AW: Foreign pointers and with-dynamic-foreign-objects


Thanks to everyone for their responses. It's nice to know my 
code won't explode in the future. ;)

Cheers,

John :^P

Martin Simmons wrote:
>>>>>> On Wed, 1 Aug 2007 14:40:53 +0200, Nico de Jager said:
>> I don't know the answer to John's question, but I would like to know what the 
>> documentation for with-dynamic-foreign-objects means with "standard foreign 
>> types". Obviously it includes immediate types, and the example for 
>> with-dynamic-foreign-objects uses an aggregate type (as defined by the FLI 
>> User Guide and Reference Manual). So does it only exclude pointer types? The 
>> terminology used by the FLI guide is not always clear (to me). E.g. when I 
>> started with the FLI I had this question which was not answered by LispWorks 
>> but I concluded the answer is immediate from examples and Paul Tarvydas' 
>> answer (http://thread.gmane.org/gmane.lisp.lispworks.general/6707):
>>
>> I am confused about whether FLI pointers types (the pointer type itself, 
>> not that what the pointer points to) are immediate or aggregate types. 
>> The Lispworks documentation specifies it as both:
>> immediate: 
>> http://www.lispworks.com/documentation/lw50/FLI/html/fli-17.htm#pgfId-888612
>> aggregate:
>> http://www.lispworks.com/documentation/lw50/FLI/html/fli-23.htm#pgfId-886654
>> (first sentence)
> 
> Pointer types are immediate types -- the only aggregate types are structures,
> unions and arrays (strings are effectively arrays).  I think the word
> "pointers" in 2.2 should say "strings".
> 

--

-- 
John Pallister
john <at> synchromesh.com


Gmane