-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Pod config dropping value when using :[number][alpha] syntax #2793
Comments
I don't see that sugar method mentioned in S26, so I didn't think of implementing it, but it should be possible. |
Well, if only for consistency... If documented, we can just drop it. |
Hm, mark it NYI? |
Maybe. Come to think of it, the problem with that syntax is that it's erroneously processed, with :3whatever exactly equal than :whatever. So it should either fail as NYI or be implemented, whatever is the easiest. |
If you mean throw some kind of NYI error, I would have as much trouble with that as with implementing it! So I might as well take it on. |
After looking at a two-digit test (e.g., "=begin pod :34foo") using module Data::Dump for more details on the current structure produced by rakudo, I believe the fix is relatively straight forward by:
|
Great!
|
Closed with 0d47db8. |
By the way, the "number" must be a UInt (in decimal form) and the docs should reflect that but I don't think that's true. |
The Problem
This program:
Expected Behavior
Should have the same value for config, since :3foo === :foo(3)
Actual Behavior
, but it prints
In the case of
:3foo
, the 3 is dropped and the value turned into a BoolSteps to Reproduce
Environment
perl6 -v
):The text was updated successfully, but these errors were encountered: