Skip to content

There is no easy way to use an EXPORT sub to export a long named spaces class #466

Open
@FCO

Description

@FCO

If I try to do something like:

my \bla = Metamodel::ClassHOW.new_type: :name<Bla::Ble::Bli::Blo::Blu>;
bla.^compose;

sub EXPORT(--> Map()) {
    "Bla::Ble::Bli::Blo::Blu" => bla
}

When I use that, it adds the whole name as a key on ::.keys, which doesn't work.

If I try something like:

module Bla::Ble::Bli::Blo {}
Bla::Ble::Bli::Blo::<Blu> := bla;

It tends to conflict with modules declared outside that file.

I belive it should be an easy way of doing that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the Raku Programming Language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions