Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having an uproarious good time at the Monastery: (9)
As of 2014-08-20 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (115 votes), past polls