Create an object/Native demonstration: Difference between revisions

m
→‎{{header|Raku}}: Fix link: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: Fix link: Perl 6 --> Raku)
Line 897:
in block <unit> at native-demonstration.p6:17</pre>
 
By defining [http://design.perl6raku.org/S12.html#FALLBACK_methods FALLBACK] any class can handle undefined method calls. Since any class inherits plenty of methods from <tt>Any</tt> our magic object will be more of a novice conjurer then a master wizard proper.
 
<lang perl6>class Magic {
2,392

edits