develooper Front page | perl.perl6.language | Postings from June 2006

Delegating and defining a method at the same time

From:
Adriano Ferreira
Date:
June 30, 2006 10:43
Subject:
Delegating and defining a method at the same time
Message ID:
73ddeb6c0606301043y6dcd95a0pbfae6eae19847226@mail.gmail.com
What is supposed to happen if one says:

class Dog {

   has $:tail handles 'wag';

   meth wag { # something else than $:tail.wag
   }
}

Is it a compilation error? Or one of the definitions prevail (with a
warning or something)?

Adriano Ferreira.



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