Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : Anonymous R objects, that is without an associated symbol in R, can be passed to functions (and in that way makes a binding "take hold of R objects without using symbols"). For example, building R code made of anonymous objects can be achieve

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Laurent Gautier a écrit : Anonymous R objects, that is without an associated symbol in R, can be passed to functions (and in that way makes a binding "take hold of R objects without using symbols"). For example, building R code made of anonymous objects can be achieved by making a LANGSXP obj

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : It does not have to be a functional language. To see it in use within a some-language-to-R bridge, you can check the source in JRI, rpy2. I can mostly speak for rpy2, and the way it is done there relies on both R and Python's GC. Creating a an

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Guillaume Yziquel
Laurent Gautier a écrit : It does not have to be a functional language. To see it in use within a some-language-to-R bridge, you can check the source in JRI, rpy2. I can mostly speak for rpy2, and the way it is done there relies on both R and Python's GC. Creating a anonymous R object presented

[Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: FWIW what I think you should be really looking at is R_PreserveObject/R_ReleaseObject. OK. Thanks. I would suggest looking at the many other R embeddings in other languages that already exist since I don't think you approach is very viable