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

$() doesn't default to $/.Str if $/.ast is undefined in Rakudo #1900

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

$() doesn't default to $/.Str if $/.ast is undefined in Rakudo #1900

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

Comments

@p6rt
Copy link

p6rt commented Jun 29, 2010

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

Searchable as RT76276$

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @masak

<moritz_> and $() defaults to $/.ast if it exists
<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
<pmichaud> spec was changed
<pmichaud> .ast is undef if not set.
<pmichaud> (it used to be .Str if not set)
<masak> ahah
<masak> right.
<masak> good. that's separation for you.
<moritz_> pmichaud​: $() should be $/.ast // $/.Str iirc
<pmichaud> moritz_​: oh, that's possible, yes.
<moritz_> S05​:2577​:C<$()> is a shorthand for C<$($/.ast // ~$/)>.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

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

@p6rt
Copy link
Author

p6rt commented Apr 1, 2013

From @labster

labster​: r​: "foo" ~~ /foo/; say "What kind of $()l am I?"
p6eval​: rakudo 2441b0​: OUTPUT«What kind of fool am I?␤»

Seems to be working now.

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

From @FROGGS

Test added​: Raku/roast@87f2ed36c4

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

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

@p6rt p6rt closed this as completed Jul 19, 2014
@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