Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Solving compositional problems with Perl 6 roles

by Ovid (Cardinal)
on Aug 22, 2004 at 01:50 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-20 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found