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

constant does not run at compile time #2279

Closed
gfldex opened this issue Aug 22, 2018 · 1 comment
Closed

constant does not run at compile time #2279

gfldex opened this issue Aug 22, 2018 · 1 comment
Labels
bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type)

Comments

@gfldex
Copy link
Contributor

gfldex commented Aug 22, 2018

The problem

https://docs.perl6.org/language/terms#Constants states that constant expressions are run at compile time. This is at best blurry, since compile time has different meanings for precompiled modules and non-precompiled code. In fact, constant expressions are run at BEGIN-time.

see: http://colabti.org/irclogger/irclogger_log/perl6-dev?date=2018-08-22#l197

Suggestions

Be precise at what time constant expressions are executed or well define what compile time actually means.

@JJ JJ added bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type) labels Aug 23, 2018
@JJ
Copy link
Contributor

JJ commented Aug 23, 2018

The whole precompiled stuff area is blurry to non-existent. Thanks to pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

2 participants