Documentation for routine self

Documentation for routine self, assembled from the following types:

language documentation Terms

From Terms

(Terms) term self

Inside a method, self refers to the invocant (i.e. the object the method was called on). If used in a context where it doesn't make sense, a compile-time exception of type X::Syntax::NoSelf is thrown.

class Mu

From Mu

(Mu) method self

method self(--> Mu)

Returns the object it is called on.