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

&?ROUTINE inside Regex should refer to Regex itself #3028

Closed
p6rt opened this issue Jan 16, 2013 · 3 comments
Closed

&?ROUTINE inside Regex should refer to Regex itself #3028

p6rt opened this issue Jan 16, 2013 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jan 16, 2013

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

Searchable as RT116417$

@p6rt
Copy link
Author

p6rt commented Jan 16, 2013

From @bbkr

<bbkr> r​: "a" ~~ m/{ say &?ROUTINE.WHAT } a/;
<p6eval> rakudo c3f565​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0mâ�¤Undeclared name​:â�¤ &?ROUTINE used at line 1â�¤â�¤Â»

<moritz> r​: say Regex ~~ Routine
<p6eval> rakudo c3f565​: OUTPUT«Trueâ�¤Â»
<moritz> should refer to the regex itself

@p6rt
Copy link
Author

p6rt commented Mar 12, 2013

From @timo

< TimToady> I wouldn't give /.../ a &?ROUTINE, since it functions mroe
like a block
< TimToady> regex {}, token {}, rule {} on the other hand are methods

I implemented this for regex/token/rule, but not for /.../ and there are
tests in roast in S02-magicals/sub.t.

@p6rt
Copy link
Author

p6rt commented Mar 12, 2013

@timo - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Mar 12, 2013
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

1 participant