The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mic::Class

SYNOPSIS

    # A simple Set class:

    package Example::Synopsis::Set;

    use Mic::Class
        interface => {
            object => {
                add => {},
                has => {},
            },
            class => {
                new => {},
            }
        },

        implementation => 'Example::Synopsis::ArraySet',
        ;
    1;

DESCRIPTION

Mic::Class allows a class to be defined whose implementation is in a separate file.

It is the compile time equivalent of calling Mic->define_class(...), and takes the same keyword parameters (see "USAGE" in Mic).