develooper Front page | perl.perl6.language | Postings from April 2005

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

Thread Previous | Thread Next
April 5, 2005 07:00
Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?
Message ID:
Larry Wall wrote:
> Roles cannot be derived from, so they're always final in that sense.
> We should probably consider them closed by default as well, or at least
> closed after first use.  If a role specifies implementation, it's always
> default implementation, so overriding implementation always occurs in a class
> instead.

Ohh, is the following illegal?

role Blahh does Blubber {...}

Or is that just not considered derivation but, hmm, specialisation, subtyping
subroleing or some such?
So, does the above produce the subtyping relation Blahh <: Blubber?
TSa (Thomas SandlaƟ)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About