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

erroneous sink of my ($a) = ... #5123

Closed
p6rt opened this issue Feb 8, 2016 · 5 comments
Closed

erroneous sink of my ($a) = ... #5123

p6rt opened this issue Feb 8, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 8, 2016

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

Searchable as RT127491$

@p6rt
Copy link
Author

p6rt commented Feb 8, 2016

From @LLFourn

class SinkCanary {
  method sink { note "SUNK!" }
}
{
  my ($a) = SinkCanary.new; # SUNK!
}

{
  my $b = SinkCanary.new; # not sunk
}

@p6rt
Copy link
Author

p6rt commented Feb 8, 2016

From @lizmat

On 08 Feb 2016, at 14​:50, Lloyd Fournier (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

class SinkCanary {
method sink { note "SUNK!" }
}
{
my ($a) = SinkCanary.new; # SUNK!
}

{
my $b = SinkCanary.new; # not sunk
}

Some preliminary research points to List.STORE. Oddly enough, any —ll-exception stack trace points to $rhs-done = 1; in the else. It definitely is *not* happening in the second stage of assigning​: adding a $no-sink receiver there doesn’t fix the problem :-(

Liz

@p6rt
Copy link
Author

p6rt commented Feb 8, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 30, 2016

From @zoffixznet

This no longer seems to be an issue.

Tests added in Raku/roast@1b57b3de80

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 30, 2016

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

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