From guillaume.yziquel at citycable.ch  Wed Dec  2 03:31:25 2009
From: guillaume.yziquel at citycable.ch (Guillaume Yziquel)
Date: Wed, 02 Dec 2009 03:31:25 +0100
Subject: [Rd] PROTECT and OCaml GC.
In-Reply-To: <B038D42D-B495-4D37-B8EB-655A8F2B1711@r-project.org>
References: <4B11B75C.9070806@citycable.ch>
	<8ec76080911281625q5d5b8824hefb14af9b23d29f0@mail.gmail.com>
	<4B11C55E.2060909@citycable.ch>
	<F11B6C18-26EC-41F8-9EEB-A614D16945AC@r-project.org>
	<4B12C417.1050308@citycable.ch>
	<65D411CD-34C3-4B89-8FF0-98C9BD7613FB@r-project.org>
	<4B13FC0F.40604@citycable.ch>
	<F60B92C3-5989-404C-8FEB-1B6002824449@r-project.org>
	<4B140B7A.2080102@citycable.ch>
	<0A1D8E9D-0BD6-40F7-B98C-59075CE04E49@r-project.org>
	<4B15C3C7.5010809@citycable.ch>
	<B038D42D-B495-4D37-B8EB-655A8F2B1711@r-project.org>
Message-ID: <4B15D17D.7040308@citycable.ch>

Simon Urbanek a ?crit :
> 
> No, because you cannot use CHARSXP as a TAG. TAGs are always symbols. Therefore, logically, you must register it first in (or obtain from) the symbol table using install.

OK. That's R side.

OCaml side, I need to have as little side-effects as possible. Symbol 
assignment is a side-effect.

Is there an API-compliant way to handle this, and make data structures 
as immutable as possible?

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/



[Rd] PROTECT and OCaml GC.
Guillaume Yziquel