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

"say :$variable" does not print Pair object #3289

Closed
p6rt opened this issue Dec 9, 2013 · 4 comments
Closed

"say :$variable" does not print Pair object #3289

p6rt opened this issue Dec 9, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Dec 9, 2013

Migrated from rt.perl.org#120735 (status was 'rejected')

Searchable as RT120735$

@p6rt
Copy link
Author

p6rt commented Dec 9, 2013

From @bbkr

<bbkr> r​: my $foo = 13; say :$foo
<camelia> rakudo-parrot 0bf3de, rakudo-jvm 0bf3de​: OUTPUT«â�¤Â»

<bbkr> r​: my $foo = 13; say (​:$foo)
<camelia> rakudo-parrot 0bf3de, rakudo-jvm 0bf3de​: OUTPUT«"foo" => 13â�¤Â»

<bbkr> should those two lines above return the same result (pair)?
<FROGGS> I would expect that, yes

@p6rt
Copy link
Author

p6rt commented Dec 9, 2013

From @pmichaud

On Mon Dec 09 06​:52​:31 2013, pawel.pabian@​implix.com wrote​:

<bbkr> r​: my $foo = 13; say :$foo
<camelia> rakudo-parrot 0bf3de, rakudo-jvm 0bf3de​: OUTPUT«â�¤Â»

<bbkr> r​: my $foo = 13; say (​:$foo)
<camelia> rakudo-parrot 0bf3de, rakudo-jvm 0bf3de​: OUTPUT«"foo" => 13â�¤Â»

<bbkr> should those two lines above return the same result (pair)?
<FROGGS> I would expect that, yes

This isn't a bug... "say :$foo" is passing a named argument to say(), and at the moment say() ignores any named arguments it receives.

It's a valid question as to whether say() should carp when called with a named argument, but that would be a specbug and not a rakudo one. :-)

Pm

@p6rt
Copy link
Author

p6rt commented Dec 9, 2013

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

@p6rt
Copy link
Author

p6rt commented Dec 9, 2013

@masak - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Dec 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant