On 11/26/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
> Others have already answered your direct question but consider that
> what you may want without realizing it is object-oriented programming.

I agree with Gabor, you're not actually looking for a global state,
but a mutable object (explicitly passing non-mutable objects around in
argument lists and returns is called threading state).  I've used the
proto package quite a bit for mutable state, and it adds an often
needed programming paradigm to R.

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to