Jon Lang dataweaver-at-gmail.com |Perl 6| wrote:
On Mon, May 5, 2008 at 6:01 AM, John M. Dlugosz
<[EMAIL PROTECTED]> 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.

Larry said it should be clear from context, either way something is omitted. And an actual { ... } body does not change the meaning here. It just allows that the sub can be redefined without error, but does not change how it is entered into the symbol tables now.

--John

Reply via email to