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

Range operator ^..^ fails to exclude endpoints if they're non-alphanumeric characters #6001

Closed
p6rt opened this issue Jan 14, 2017 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jan 14, 2017

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

Searchable as RT130554$

@p6rt
Copy link
Author

p6rt commented Jan 14, 2017

From @smls

The range operator lets us generate a range of characters in codepoint order​:

  say list 'a' .. 'f'; # (a b c d e f)
  say list '1' .. '6'; # (1 2 3 4 5 6)
  say list '!' .. '&'; # (! " # $ % &)

However, the endpoint exclusion provided by the ..^, ^.., ^..^
variants of the operator only seems to work when the endpoints are
alphanumeric characters​:

  say list 'a' ^..^ 'f'; # (b c d e)
  say list '1' .. '6'; # (2 3 4 5)
  say list '!' ^..^ '&'; # (! " # $ % &)

@p6rt
Copy link
Author

p6rt commented Jan 14, 2017

From @smls

Fixed in rakudo/rakudo@daf7e51

Tests needed.

@p6rt
Copy link
Author

p6rt commented Jan 21, 2017

From @smls

Tests added​: Raku/roast@dba88c9

@p6rt p6rt closed this as completed Jan 21, 2017
@p6rt
Copy link
Author

p6rt commented Jan 21, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant