Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 chanting in the Monastery: (14)
As of 2015-07-01 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (13 votes), past polls