[Chicken-users] Question about gc-roots

2014-03-13 Thread pluijzer .
, would somebody kindly explain. Thanks in advance, Pluijzer ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] mutate-procedure documentation

2014-03-08 Thread pluijzer .
Hello everybody, I was reading the documentation for mutate-procedure in the lolevel unit ( http://wiki.call-cc.org/man/3/Unit%20lolevel#mutate-procedure) but got confused by the example given. Should 'new' not be called 'old', or do I misunderstand? Thx, Pluijzer

[Chicken-users] pass by value and callbacks

2014-03-08 Thread pluijzer .
) I don't actually need the the value of the object in my callback. Maybe that helps. Thank you in advance, Pluijzer ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] #invalid forwarded object using FFI callback

2013-12-21 Thread pluijzer .
Hello Alyn, Thank you for the extra info. For my sitituation, which is a little different to yours I think, a work aroundt he issue at the moment by wrapping the scheme-object around a structure that contains a root node. I do not know how appropriate or convinient this is to your situation.

Re: [Chicken-users] #invalid forwarded object using FFI callback

2013-12-19 Thread pluijzer .
Hello Alyn, Did you find a solution to this problem? I seem to suffer a similar problem. thanks, Pluijzer 2013/12/8 .alyn.post. alyn.p...@lodockikumazvati.org Greetings, I'm encountering the following error message inside a callback using Chicken's FFI interface: Error: (cdr) bad

[Chicken-users] assigning scheme object to foreign pointer

2013-12-15 Thread pluijzer
to accomplish this, maybe by telling the gc not to move the object? thank you very much in advance, Pluijzer ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] assigning scheme object to foreign pointer

2013-12-15 Thread pluijzer
Hello Evan and Thomas, Thank you for your suggestions, I decided to go for `CHICKEN_new_gc_root` and it works like I hoped. I was the lookup-table before but found it to be too unwieldy in my project. Thanks again, Pluijzer On Mon, 16 Dec 2013 13:28:27 +1300 Evan Hanson ev...@foldling.org

[Chicken-users] Problem with creating extensions

2013-10-16 Thread pluijzer .
) --- I am using Debain Wheezy Am I making a silly mistake, have I forgotten something? Thank you in advance, Pluijzer ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] Chicken C interface

2013-06-05 Thread pluijzer .
Hello everybody, I was planning to use Chicken Scheme in a fashion more similar to Guile and Lua. i.e. passing Scheme Data Objects from Chicken to C and back using the C interface. I am a little confused though as how to have a C function return a Scheme List that is seen by the garbage

[Chicken-users] Passing floats to and from foreign functions

2013-05-11 Thread pluijzer .
Hello everybody, I'm having trouble passing floating point numbers to and from foreign functions. This is what I'm doing: -- test.scm -- (require-extension easyffi) (print ((foreign-lambda float testGet))) ((foreign-lambda void testSet float) 4.0) (print ((foreign-lambda float testGet))) --