Navigation Menu

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

Implement (*) in the LHS of 'my' declarations #689

Closed
p6rt opened this issue Feb 10, 2009 · 6 comments
Closed

Implement (*) in the LHS of 'my' declarations #689

p6rt opened this issue Feb 10, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 10, 2009

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

Searchable as RT63146$

@p6rt
Copy link
Author

p6rt commented Feb 10, 2009

From @masak

<TimToady> my (*) = 5 should work though
<TimToady> iirc
<masak> rakudo​: my (*) = 5;
<p6eval> rakudo 577566​: OUTPUT«Could not find non-existent sub my [...]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

From @TimToady

On Tue, Feb 10, 2009 at 12​:14​:35PM -0800, Carl Mäsak wrote​:
: # New Ticket Created by "Carl Mäsak"
: # Please include the string​: [perl #​63146]
: # in the subject line of all future correspondence about this issue.
: # <URL​: http://rt.perl.org/rt3/Ticket/Display.html?id=63146 >
:
:
: <TimToady> my (*) = 5 should work though
: <TimToady> iirc
: <masak> rakudo​: my (*) = 5;
: <p6eval> rakudo 577566​: OUTPUT«Could not find non-existent sub my [...]
: * masak submits rakudobug

Actually, that would have to be (*@​) in a my, since a my takes a
signature. You can only use (*) in an ordinary list assignment​:

  (*) = 5;
  ($a,$b,$c,*) = @​values;

Larry

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

From @masak

Larry (>)​:

Actually, that would have to be (*@​) in a my, since a my takes a
signature. You can only use (*) in an ordinary list assignment​:

\(\*\) = 5;
\($a,$b,$c,\*\) = @&#8203;values;

Ok, since the latter two work already, I'm rescuing this bug ticket by
re-naming it "[TODO] Implement (*@​) in the LHS of 'my' declarations".

<masak> rakudo​: my (*@​) = 1,2,3
<p6eval> rakudo e73c95​: OUTPUT«Statement not terminated properly at line
1, near "@​) = 1,2,3" [...]

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

From @jnthn

On Wed Feb 11 01​:21​:29 2009, masak wrote​:

Larry (>)​:

Actually, that would have to be (*@​) in a my, since a my takes a
signature. You can only use (*) in an ordinary list assignment​:

\(\*\) = 5;
\($a,$b,$c,\*\) = @&#8203;values;

Ok, since the latter two work already, I'm rescuing this bug ticket by
re-naming it "[TODO] Implement (*@​) in the LHS of 'my' declarations".

<masak> rakudo​: my (*@​) = 1,2,3
<p6eval> rakudo e73c95​: OUTPUT«Statement not terminated properly at line
1, near "@​) = 1,2,3" [...]

Implemented in git dfe942d (the patch actually makes bare sigils in
signatures generally work, with the happy result that I could also
unskip various other things in assign.t). assign.t did miss a test for
this case though, so added that as well.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

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

@p6rt p6rt closed this as completed Feb 25, 2009
@p6rt p6rt added the Todo 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