develooper Front page | perl.perl6.language | Postings from May 2008

Re: nested 'our' subs - senseless?

Thread Previous | Thread Next
From:
Jon Lang
Date:
May 5, 2008 11:09
Subject:
Re: nested 'our' subs - senseless?
On Mon, May 5, 2008 at 6:01 AM, John M. Dlugosz
<dhcgnd702@sneakemail.com> wrote:
> TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:
>
> >
> > No, because {...} is just a declaration. You can give a
> > definition later in the surrounding module/package/class.
> > Within that scope there can be only one definition, of course.
> >
>
>  I did not mean to use { ... } to mean declaration only, but to show that I
> omitted the good stuff.  In Perl 6, it is not "declaration only" but a body
> that doesn't complain when it is redefined, so that should not matter.

Given that Perl 6 assigns a specific meaning to '{ ... }', it's
recommended that examples that omit code instead be written as '{ doit
}' or the like.

-- 
Jonathan "Dataweaver" Lang

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About