Hi,

In Perl 6 we need to be able to have Parrot subs take on a range of different types. For example, those that are methods should be of type Method, others of type Block, Submethod and so forth.

I'd like to propose a type adverb for subs.

.sub 'foo' :method :type('Submethod')
   ...
.end

That instead of creating a Sub PMC, creates an instance of Submethod (which should have Sub as one of its parents, mind, so we can stash the sub info away).

Is the idea sane, and is the name of the adverb OK? If so, I'll go ahead and implement it (with changes as needed).

Thanks,

Jonathan

Reply via email to