Re: [Rd] external pointers

2005-12-11 Thread Mark.Bravington
I don't entirely follow Ross's outline below (?how does the R object 'opaque' get to feature in the call to 'docompute'?), but I have written large amounts of R-linked Delphi code with persistent Delphi objects, using only the '.C' interface and no external pointers. You might find this useful if y

Re: [Rd] external pointers

2005-12-11 Thread Simon Urbanek
Mark, On Dec 12, 2005, at 7:48 AM, <[EMAIL PROTECTED]> wrote: > (i)The first '.C' call uses Delphi code to allocate (using Delphi's > own memory manager) and set up a persistent object that R doesn't > know about. The Delphi code then returns an "opaque" integer-valued > handle to R, which

Re: [Rd] external pointers

2005-12-11 Thread Mark.Bravington
Hi Simon Thanks for that... see below for my feeble counterblasts! (And two questions.) > Mark, > > On Dec 12, 2005, at 7:48 AM, <[EMAIL PROTECTED]> wrote: > > > (i)The first '.C' call uses Delphi code to allocate (using Delphi's > > own memory manager) and set up a persistent object that R >

Re: [Rd] external pointers

2005-12-11 Thread Roger Bivand
On Mon, 12 Dec 2005 [EMAIL PROTECTED] wrote: > Hi Simon > > Thanks for that... see below for my feeble counterblasts! (And two > questions.) > > > Mark, > > > > On Dec 12, 2005, at 7:48 AM, <[EMAIL PROTECTED]> wrote: > > > > > (i)The first '.C' call uses Delphi code to allocate (using Delphi's