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

Assignment to 'is copy' parameter which holds Whatever has no effect #1781

Closed
p6rt opened this issue May 23, 2010 · 3 comments
Closed

Assignment to 'is copy' parameter which holds Whatever has no effect #1781

p6rt opened this issue May 23, 2010 · 3 comments

Comments

@p6rt
Copy link

p6rt commented May 23, 2010

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

Searchable as RT75302$

@p6rt
Copy link
Author

p6rt commented May 23, 2010

From @moritz

Can't clear a variable that holds *​:

22​:21 <@​moritz_> rakudo​: sub f($x is copy) { $x = 'abc'; say $x.WHAT;
say $x.perl }; f *
22​:21 <+p6eval> rakudo eb84e9​: OUTPUT«Whatever()␤!whatever_dispatch_helper␤»

Behaves as expected

22​:20 <@​moritz_> rakudo​: sub f($x is copy) { $x = Any; say $x.defined;
say $x.perl }; f 'a'
22​:20 <+p6eval> rakudo eb84e9​: OUTPUT«0␤Any␤»

Also behaves as expected​:

22​:20 <@​moritz_> rakudo​: my $x = *; $x = Any; say $x.perl
22​:20 <+p6eval> rakudo eb84e9​: OUTPUT«Any␤»

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

works now, tested in S06-traits/is-copy.t.

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Oct 1, 2011
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