Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl 6 OOP: before and after methods "CLOS style"

by snoopy (Curate)
on Feb 19, 2017 at 21:38 UTC ( [id://1182319]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CLOS;
    class Bake {
    ...
    say "----";
    $cook.rest;
    
  2. or download this
    perl6 -I . Bake.pm
    ...about to preheat
    ...
    ----
    resting
    ...resting done
    
  3. or download this
    my class CLOSClassHOW is Metamodel::ClassHOW {
        my Bool %before{Any};
    ...
    
    my module EXPORTHOW { }
    EXPORTHOW.WHO.<class> = CLOSClassHOW;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found