perl6/doc/lib/X/Syntax/Augment/WithoutMonkeyTyping
doc src
(title) class X::Syntax::Augment::WithoutMonkeyTyping
class X::Syntax::Augment::WithoutMonkeyTyping does X::Syntax { }
Compile time error thrown when augment is used without use MONKEY_TYPING .
Since augment is considered a rather unsafe and impolate action, you have
to pre-declare your intent with the use MONKEY_TYPING; pragma.
If you don't do that, for example
augment class Int { };
you get the error
===SORRY!===
augment not allowed without 'use MONKEY_TYPING'