From h.wickham at gmail.com  Sun Mar 30 18:04:25 2008
From: h.wickham at gmail.com (h.wickham at gmail.com)
Date: Sun, 30 Mar 2008 11:04:25 -0500
Subject: [Rd] callCC in 2.7.0
In-Reply-To: <971536df0803300710t40f61256x78b9889a5c323924@mail.gmail.com>
References: <971536df0803300710t40f61256x78b9889a5c323924@mail.gmail.com>
Message-ID: <f8e6ff050803300904i1a950ed5r58738fb4184ccad0@mail.gmail.com>

> Would anyone like to explain if callCC in R 2.7.0 gives
> anything that on.exit does not already provide?
>
> It seems that the exit condition once defined cannot
> be added to overridden whereas with on.exit multiple
> on.exit's add additional on.exits rather than being ignored.
>
> Is this important?

It facilitates a completely different style of programming - see
http://en.wikipedia.org/wiki/Continuation-passing_style

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



[Rd] callCC in 2.7.0
h.wickham at gmail.com