On Nov 14, 2007 2:47 PM, Nicholas Clark <[EMAIL PROTECTED]> wrote:

> On Sat, Sep 08, 2007 at 01:48:39PM +0100, Nicholas Clark wrote:
> > Have I got this correct?
> >
> >     state @a = foo(); # Implicit START block around call and
> initialisation
> >     state (@a) = foo();       # Implicit START block around call and
> initialisation
> >     (state @a) = foo();       # foo() called every time, assignment
> every time
>
> Um. That seemed to scare everyone away. If it's rephrased like this:
>
>    my @a = foo();      # What context is foo called in?
>    my (@a) = foo();    # What context is foo called in? Is it the same?
>    (my @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?
>

My two cents:  foo() looks like it's always in list context, but as far as
START goes, I'd think the first two call foo() only once while the third
calls it every time (just as you have it written).

Now, someone tell me if I'm right or wrong and why  :-)


Nicholas Clark
>


-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to