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
From:
=?UTF-8?B?VGhvbWFzIFNhbmRsYcOf?=
Date:
April 5, 2005 07:00
Subject:
Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?
Message ID:
425299E9.6050009@orthogon.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About