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

Fix detection of current language version #3146

Merged
merged 1 commit into from Aug 25, 2019

Conversation

vrurg
Copy link
Member

@vrurg vrurg commented Aug 25, 2019

For unknown reason nqp::getcomp('perl6').language_version sometimes
returns 6.d at compile time even though use v6.e.PREVIEW pragma is
used. To get around this problem getcomp is now last-resort path.
First nqp::p6clientcorever is used to work for type objects created
dynamically at run time; then World object is used to find
CORE-SETTING-REV symbol to work at compile-time.

#3141

For unknown reason `nqp::getcomp('perl6').language_version` sometimes
returns `6.d` at compile time even though `use v6.e.PREVIEW` pragma is
used. To get around this problem `getcomp` is now last-resort path.
First `nqp::p6clientcorever` is used to work for type objects created
dynamically at run time; then `World` object is used to find
`CORE-SETTING-REV` symbol to work at compile-time.

rakudo#3141
@vrurg vrurg merged commit 2b52e0f into rakudo:master Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant