Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Peforming "newclosure" at compile time?

0 views
Skip to first unread message

Audrey Tang

unread,
Jan 15, 2006, 3:03:37 PM1/15/06
to perl6-i...@perl.org, Chip Salzenberg
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.

Thanks,
Audrey

Leopold Toetsch

unread,
Jan 16, 2006, 8:31:11 AM1/16/06
to autr...@autrijus.org, perl6-i...@perl.org, Chip Salzenberg

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


0 new messages