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

Cannot inherit from CORE::Int or similar forms #4658

Open
p6rt opened this issue Oct 17, 2015 · 1 comment
Open

Cannot inherit from CORE::Int or similar forms #4658

p6rt opened this issue Oct 17, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 17, 2015

Migrated from rt.perl.org#126384 (status was 'new')

Searchable as RT126384$

@p6rt
Copy link
Author

p6rt commented Oct 17, 2015

From @moritz

<moritz> m​: class A is CORE​::Int { }
<camelia> rakudo-moar 5d8e96​: OUTPUT«===SORRY!===␤Could not locate
  compile-time value for symbol CORE​::Int␤»
<moritz> that's a bug (or at least LTA), right?
<TimToady> m​: { supersede class Int is OUTERS​::Int { method flurb() 42
  }; say 5.flurb }; say 5.flurb;
<camelia> rakudo-moar 5d8e96​: OUTPUT«===SORRY!===␤Could not locate
  compile-time value for symbol OUTERS​::Int␤»
<TimToady> so it would seem
<moritz> m​: class A is CORE​::<Int> { }
<camelia> rakudo-moar 5d8e96​: OUTPUT«===SORRY!===␤Could not locate
  compile-time value for symbol CORE␤»
* moritz submits

It seems none of the pseudo-package forms can currently be used in a
place where a compile-time value is expected, which is unfortunate. At
least CORE, OUTER and OUTERS are known at compile time, and referencing
a constant in one of them should be also possible at compile time

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant