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

importing constants in Rakudo #2837

Closed
p6rt opened this issue Jul 23, 2012 · 6 comments
Closed

importing constants in Rakudo #2837

p6rt opened this issue Jul 23, 2012 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 23, 2012

Migrated from rt.perl.org#114246 (status was 'resolved')

Searchable as RT114246$

@p6rt
Copy link
Author

p6rt commented Jul 23, 2012

From @masak

<TimToady> I dunno whether rakudo supports importing constants yet
<TimToady> you'd think it wouldn't be hard, since it already has to
import types, which parse the same
<TimToady> perl6​: module MyPi { constant mypi is export = 3 }; import
MyPi; say mypi
<p6eval> ..rakudo 3ac8c7​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Undefined
routine '&mypi' called (line 1)␤»
<TimToady> apparently not
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Nov 19, 2012

From @FROGGS

looks like it is working now​:

FROGGS> r​: module MyPi { constant mypi is export = 3 }; import MyPi; say
mypi
<p6eval> rakudo cecc9f​: OUTPUT«3␤»

@p6rt
Copy link
Author

p6rt commented Nov 19, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 19, 2012

@p6rt
Copy link
Author

p6rt commented Nov 20, 2012

From @masak

On Mon Nov 19 12​:42​:04 2012, FROGGS.de wrote​:

Test that covers it​:
https://github.com/perl6/roast/blob/master/S11-modules/import.t#L22

Resolving.

@p6rt
Copy link
Author

p6rt commented Nov 20, 2012

@masak - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 20, 2012
@p6rt p6rt added the Todo 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