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

<<...>> returns the wrong structure #4512

Closed
p6rt opened this issue Sep 5, 2015 · 5 comments
Closed

<<...>> returns the wrong structure #4512

p6rt opened this issue Sep 5, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 5, 2015

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

Searchable as RT125995$

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

From @dakkar

Example​:

  $ perl6 -e 'dd <a b>'
  ("a", "b")
 
  $ perl6 -e 'dd <<a b>>'
  "a"
  "b"

  $ perl6 -e 'dd qw{a b}'
  ("a", "b")

  $ perl6 -e 'dd qqw{a b}'
  ("a", "b")

This is on commit 03b5a
 
--
  Dakkar - <Mobilis in mobile>
  GPG public key fingerprint = A071 E618 DD2C 5901 9574
  6FE2 40EA 9883 7519 3F88
  key id = 0x75193F88

Different all twisty a of in maze are you, passages little.

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

From @lizmat

Some elaboration​:

$ 6 'sub a(@​a) { say @​a.perl }; a <a b>; a << a b >>'
===SORRY!=== Error while compiling -e
Calling a(Str, Str) will never work with declared signature (@​a)
at -e​:1
------> sub a(@​a) { say @​a.perl }; a <a b>; ⏏a << a b >>

Liz

On 05 Sep 2015, at 12​:33, dakkar (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by dakkar
# Please include the string​: [perl #​125995]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125995 >

Example​:

$ perl6 -e 'dd <a b>'
("a", "b")

$ perl6 -e 'dd <<a b>>'
"a"
"b"

$ perl6 -e 'dd qw{a b}'
("a", "b")

$ perl6 -e 'dd qqw{a b}'
("a", "b")

This is on commit 03b5a

--
Dakkar - <Mobilis in mobile>
GPG public key fingerprint = A071 E618 DD2C 5901 9574
6FE2 40EA 9883 7519 3F88
key id = 0x75193F88

Different all twisty a of in maze are you, passages little.

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

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

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

From @jnthn

On Sat Sep 05 03​:41​:57 2015, elizabeth wrote​:

Some elaboration​:

$ 6 'sub a(@​a) { say @​a.perl }; a <a b>; a << a b >>'
===SORRY!=== Error while compiling -e
Calling a(Str, Str) will never work with declared signature (@​a)
at -e​:1
------> sub a(@​a) { say @​a.perl }; a <a b>; ⏏a << a b >>

Fixed and test added to S02-literals/quoting.t.

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

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

@p6rt p6rt closed this as completed Sep 5, 2015
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