Re: [Chicken-users] Re: object-evict, string ports, safe-foreign-wrapper, foreign-primitive, Cheney on the Victoria Line, etc (was: What happens to a (non-simple) Scheme object sent to a foreign funct

2007-02-05 Thread Tony Sidaway
On 2/5/07, felix winkelmann [EMAIL PROTECTED] wrote: sufficiently big). An alternative is to create a suitably sized byte-vector beforehand (in Scheme, using the heap) and copying the data inside a block of foreign code (or use move-memory!). Ah! I didn't know move-memory existed. This is

Re: [Chicken-users] Re: object-evict, string ports, safe-foreign-wrapper, foreign-primitive, Cheney on the Victoria Line, etc (was: What happens to a (non-simple) Scheme object sent to a foreign funct

2007-02-04 Thread felix winkelmann
On 2/5/07, Tony Sidaway [EMAIL PROTECTED] wrote: Would it be best to write something to do that in C as a foreign-primitive? Basically a C function, declared foreign-primitive, that takes a C-pointer and an int, and allocates a byte vector of the appropriate size. Presumably this would