Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Solving compositional problems with Perl 6 roles

by Ovid (Cardinal)
on Aug 22, 2004 at 01:50 UTC ( #384858=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    class Elf is Character {
    class Human is Character {
  2. or download this
    class Thief is Profession {
    my Elf $elf .= new(;
  3. or download this
    class Elf is Character {
      has $:profession;
  4. or download this
    class Elf is Character does Infravision {
    class Gnome is Character does Infravision {

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://384858]
Approved by elusion
Front-paged by Enlil
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-22 13:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.