Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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(Thief.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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-11-26 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (176 votes), past polls