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

Re: OK, ::?CLASS not virtual

Thread Previous | Thread Next
From:
Jon Lang
Date:
April 30, 2008 21:47
Subject:
Re: OK, ::?CLASS not virtual
Message ID:
ef30550b0804302147w739d703dr2d848fc9c2e5c65e@mail.gmail.com
John M. Dlugosz wrote:
>  And you can use CLASS in a role also, confidant that it will be looked up
> according to the normal rules when the class is composed using that role,
> just like any other symbol that is not found when the role is defined.
> Using ::?CLASS in a role is an error (unless you mean the class surrounding
> this role's definition, in which case it is a warning).

Can a role inherit from a class?  If so, to which class does CLASS
refer: the inherited one, or the one into which the role is composed?

-- 
Jonathan "Dataweaver" Lang

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