Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FCO opened this issue Feb 17, 2025 · 0 comments
Open
Labels
language Changes to the Raku Programming Language

Comments

@FCO
Copy link
Contributor

FCO commented Feb 17, 2025

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.

@FCO FCO added the language Changes to the Raku Programming Language label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Changes to the Raku Programming Language
Projects
None yet
Development

No branches or pull requests

1 participant