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

[Truffle] $POSTMATCH not aliased #3051

Closed
bjfish opened this issue Jun 15, 2015 · 3 comments
Closed

[Truffle] $POSTMATCH not aliased #3051

bjfish opened this issue Jun 15, 2015 · 3 comments
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Jun 15, 2015

It looks like jruby's English.rb file comments out the aliases.

Example

require "English"
/^is/ =~ "isPermaLink"
puts "#{$'},#{$POSTMATCH}"

Expected

$ ruby alias.rb 
PermaLink,PermaLink

Actual

$ ~/Documents/jruby/bin/jruby -X+T alias.rb 
PermaLink,
@bjfish bjfish added the truffle label Jun 15, 2015
@chrisseaton
Copy link
Contributor

Is this blocking something major?

@bjfish
Copy link
Contributor Author

bjfish commented Jun 20, 2015

@chrisseaton No, the RSS stdlib uses it.

@eregon
Copy link
Member

eregon commented Nov 8, 2016

aliasing of global variables is now implemented, but this example does not work for two reasons:

  • jruby modified English.rb and commented the code, so we should use a vanilla version from MRI 2.3 instead.
  • $~ and MatchData-related as well as $_ are special and currently frame and thread-local. Aliasing does not currently work for them.

@bjfish bjfish closed this as completed Jan 14, 2017
@enebo enebo modified the milestone: truffle-dev Feb 10, 2017
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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

No branches or pull requests

4 participants