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

&make outside of an action method has no effect in Rakudo #1901

Closed
p6rt opened this issue Jun 29, 2010 · 5 comments
Closed

&make outside of an action method has no effect in Rakudo #1901

p6rt opened this issue Jun 29, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 29, 2010

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

Searchable as RT76278$

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @masak

<masak> rakudo​: "foo" ~~ /foo/; say "What kind of $()l am I?"
<p6eval> rakudo 451b40​: OUTPUT«What kind of l am I?␤»
<masak> hm, shouldn't that say 'fool'?
<pmichaud> no
<masak> rakudo​: "foo" ~~ / foo {make "foo"} /; say "What kind of $()l am I?"
<masak> pmichaud​: what about that?
<pmichaud> masak​: that looks buggish.
<jnthn> I think make not done inside an action method has always been
buggy, fwiw.
<pmichaud> I think make is just broken in rakudo
<jnthn> pmichaud​: Yes, that matches my experience.
* masak submits the other rakudobug
<pmichaud> nqp​: say(('foo' ~~ / foo { make 'foo' }/).ast)
<p6eval> nqp​: OUTPUT«␤»
<pmichaud> hmmm.
<pmichaud> okay, I'll look at that one.
<pmichaud> but I do suspect a bug in rakudo's &make
<pmichaud> as in, it appears that rakudo doesn't have one.

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 24, 2014

From @coke

On Tue Jun 29 15​:37​:31 2010, masak wrote​:

<masak> rakudo​: "foo" ~~ /foo/; say "What kind of $()l am I?"
<p6eval> rakudo 451b40​: OUTPUT«What kind of l am I?␤»
<masak> hm, shouldn't that say 'fool'?
<pmichaud> no
<masak> rakudo​: "foo" ~~ / foo {make "foo"} /; say "What kind of $()l am I?"
<masak> pmichaud​: what about that?
<pmichaud> masak​: that looks buggish.
<jnthn> I think make not done inside an action method has always been
buggy, fwiw.
<pmichaud> I think make is just broken in rakudo
<jnthn> pmichaud​: Yes, that matches my experience.
* masak submits the other rakudobug
<pmichaud> nqp​: say(('foo' ~~ / foo { make 'foo' }/).ast)
<p6eval> nqp​: OUTPUT«␤»
<pmichaud> hmmm.
<pmichaud> okay, I'll look at that one.
<pmichaud> but I do suspect a bug in rakudo's &make
<pmichaud> as in, it appears that rakudo doesn't have one.

The behavior has changed​:

02​:33 <[Coke]> rakudo​: "foo" ~~ /foo/; say "What kind of $()l am I?"
02​:34 <camelia> rakudo-jvm e8cea1​: OUTPUT«(timeout)»
02​:34 <camelia> ..rakudo-parrot e8cea1, rakudo-moar e8cea1​: OUTPUT«What kind of
  fool am I?␤»

02​:33 <[Coke]> rakudo​: "foo" ~~ / foo {make "foo"} /; say "What kind of $()l am
  I?"
02​:33 <camelia> rakudo-jvm e8cea1​: OUTPUT«(timeout)»
02​:33 <camelia> ..rakudo-parrot e8cea1, rakudo-moar e8cea1​: OUTPUT«What kind of
  fool am I?␤»

02​:33 <[Coke]> nqp​: say(('foo' ~~ / foo { make 'foo' }/).ast)
02​:33 <camelia> nqp-moarvm, nqp-jvm, nqp-parrot​: OUTPUT«␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 24, 2015

From @jnthn

On Tue Jun 29 15​:37​:31 2010, masak wrote​:

<masak> rakudo​: "foo" ~~ /foo/; say "What kind of $()l am I?"
<p6eval> rakudo 451b40​: OUTPUT«What kind of l am I?␤»
<masak> hm, shouldn't that say 'fool'?
<pmichaud> no
<masak> rakudo​: "foo" ~~ / foo {make "foo"} /; say "What kind of $()l am I?"
<masak> pmichaud​: what about that?
<pmichaud> masak​: that looks buggish.
<jnthn> I think make not done inside an action method has always been
buggy, fwiw.
<pmichaud> I think make is just broken in rakudo
<jnthn> pmichaud​: Yes, that matches my experience.
* masak submits the other rakudobug
<pmichaud> nqp​: say(('foo' ~~ / foo { make 'foo' }/).ast)
<p6eval> nqp​: OUTPUT«␤»
<pmichaud> hmmm.
<pmichaud> okay, I'll look at that one.
<pmichaud> but I do suspect a bug in rakudo's &make
<pmichaud> as in, it appears that rakudo doesn't have one.

Resolved in Rakudo by now (think it's been fixed at least a year or two). Verified we have test coverage (we do, in S05-match/make.t). Resolving.

/jnthn

@p6rt p6rt closed this as completed Sep 24, 2015
@p6rt
Copy link
Author

p6rt commented Sep 24, 2015

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

@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