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

smartmatching undef against a regular expression breaks in Rakudo #1118

Closed
p6rt opened this issue Jul 5, 2009 · 5 comments
Closed

smartmatching undef against a regular expression breaks in Rakudo #1118

p6rt opened this issue Jul 5, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 5, 2009

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

Searchable as RT67234$

@p6rt
Copy link
Author

p6rt commented Jul 5, 2009

From @masak

<masak> jnthn​: hello. I've been coding a lot since I left last night.
<masak> have a few new bugs to report.
<masak> rakudo​: undef ~~ /foo/
<p6eval> rakudo 6a4d66​: OUTPUT«Object must be created by a class.␤in
regex PGE​::Grammar​::_block50 [...]
<masak> I consider this a rakudobug.
<jnthn> Hmm, that's quite a wtf one.
<jnthn> rakudo​: my $a = undef; $a ~~ /foo/
<p6eval> rakudo 6a4d66​: OUTPUT«Use of uninitialized value␤»
* masak submits it
<jnthn> rakudo​: my $a = undef; say $a.PARROT; say undef.PARROT;
<p6eval> rakudo 6a4d66​: OUTPUT«Failure␤Failure␤»

@p6rt
Copy link
Author

p6rt commented Jul 19, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in b/t/spec/S05-metasyntax/regex.t

@p6rt
Copy link
Author

p6rt commented Jul 19, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 20, 2009

From @moritz

On Sun Jul 05 04​:15​:32 2009, masak wrote​:

<masak> jnthn​: hello. I've been coding a lot since I left last night.
<masak> have a few new bugs to report.
<masak> rakudo​: undef ~~ /foo/
<p6eval> rakudo 6a4d66​: OUTPUT«Object must be created by a class.␤in
regex PGE​::Grammar​::_block50 [...]
<masak> I consider this a rakudobug.

And now fixed​:
09​:20 <@​moritz_> rakudo​: say ?(undef ~~ / 'RT #​67234'/)
09​:20 <+p6eval> rakudo 9d76f3​: OUTPUT«0␤»

Will unfudge that test later today

@p6rt
Copy link
Author

p6rt commented Oct 20, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 20, 2009
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant