[Chicken-users] foreign-lambda* question

2011-03-09 Thread John J Foerch
Hello, I'm writing a program that uses xlib and have hit a question that I cannot make heads or tails of from the web docs. I have a procedure that takes a window and a list of numbers and sets a property on the window which is an array of those numbers. The array must be an array of unsigned lo

Re: [Chicken-users] foreign-lambda* question

2011-03-09 Thread Jim Ursetto
John, Presuming you no longer need the contents of "values" after the call to window-property-set, you can then use "free" from unit lolevel to free the memory. Is that the case? On Mar 9, 2011, at 21:35, John J Foerch wrote: > Hello, > > I'm writing a program that uses xlib and have hit a qu

Re: [Chicken-users] foreign-lambda* question

2011-03-10 Thread Thomas Chust
2011/3/10 John J Foerch : > [...] > I have a procedure that takes a window and a list of numbers and > sets a property on the window which is an array of those > numbers.  The array must be an array of unsigned long, and > foreign-lambda* seems to be the tool for the job to make this > object.  In