Audrey Tang (autrijus) wrote:
I'm glad to report the soon-to-be-released Pugs 6.2.11 now targets
Parrot with the new calling convention and lexical pad syntax.

However, the explicit demand on a "newclosure" runtime call makes
package-scoped subroutines awkward to generate and use -- please see
this journal entry for details:

http://pugs.blogs.com/pugs/2006/01/pir_compilation.html

so my question is, is it sane to get a :closure trait to go with
:outer(foo) so it can perform newclosure at compile time? That will
make it agree with Perl5 and Perl6's closure composition semantics for
package-scoped subroutines.

This is now implemented (r11212), except that a special :closure trait isn't needed, as :outer(foo) is used as an indicator that a Clsoure should be created.

Thanks,
Audrey

leo


Reply via email to