14 Nov 2007 21:47
parentheses and context (was Re: state and START)
Nicholas Clark <nick <at> ccl4.org>
2007-11-14 20:47:05 GMT
2007-11-14 20:47:05 GMT
On Sat, Sep 08, 2007 at 01:48:39PM +0100, Nicholas Clark wrote:
> Have I got this correct?
>
> state <at> a = foo(); # Implicit START block around call and initialisation
> state ( <at> a) = foo(); # Implicit START block around call and initialisation
> (state <at> a) = foo(); # foo() called every time, assignment every time
Um. That seemed to scare everyone away. If it's rephrased like this:
my <at> a = foo(); # What context is foo called in?
my ( <at> a) = foo(); # What context is foo called in? Is it the same?
(my <at> a) = foo(); # What context is foo called in? Is it the same?
Are the three calls in the same context? Or two (or even three) different
contexts?
Nicholas Clark
Nicholas Clark
>
RSS Feed