Skip to content
Prev 248 / 63421 Next

R-alpha: unif_rand() again

Peter Dalgaard BSA wrote:
In the blue book the call looks like

	.C("zero_find", list(f), ...)

and is used as

	zero_find(void **ff, ...) {
	  func = ff[0];
	  ...
	  call_S(func, ...
	  ...
	}

In the R example the call looks like

	.C("zero_find", f, ...)

and is used as

	zero_find(void *f, ...) {
	  func = f;
	  ...
	  call_S(func, ...
	  ...
	}

In the blue book there is the extra wrapping in alist which gets
undone with a dereference in C -- I don't know if this is really
needed to or not.
Message-ID: <9706031639.AA15847@nokomis.stat.umn.edu>
In-Reply-To: <x2u3jf4pvm.fsf@bush.kubism.ku.dk> from "Peter Dalgaard BSA" at Jun 3, 97 06:23:24 pm