Documentation for method bless

Documentation for method bless, assembled from the following types:

class Mu

From Mu

(Mu) method bless

method bless(*%attrinit --> Mu:D)

Lower-level object construction method than new.

Creates a new object of the same type as the invocant, uses the named arguments to initialize attributes, and returns the created object.

You can use this method when writing custom constructors:

class Point {
    has $.x;
    has $.y;
    multi method new($x$y{
my $p =;

(Though each time you write a custom constructor, remember that it makes subclassing harder).