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

FYI: HLL-mapped .Sub PMCs (r11852)

0 views
Skip to first unread message

Leopold Toetsch

unread,
Mar 10, 2006, 7:16:05 AM3/10/06
to Perl 6 Internals
Hi all,

now the following should work:

.HLL "Foo", "Foo_group"
.HLL_map .Sub, .FooSub

.sub foo # typeof gives 'FooSub'
...

(given that the HLL 'Foo' has defined a 'FooSub', which C<isa> Sub [1])

Closures and coroutines should be mappable too now.

There is one test[2], which is showing that at least a subroutine of the
correct type is created but not more.

(Success) usage stories with existing HLLs welcome,
leo

[1] more precisely: it has to be a PMC, which extends Sub, overriding
this type from PIR doesn't work due to different data layout)

[2] t/dynpmc/sub.t

0 new messages