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

with no strict temp does not autcreate hashes and hash elements #4318

Closed
p6rt opened this issue Jun 13, 2015 · 7 comments
Closed

with no strict temp does not autcreate hashes and hash elements #4318

p6rt opened this issue Jun 13, 2015 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jun 13, 2015

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

Searchable as RT125398$

@p6rt
Copy link
Author

p6rt commented Jun 13, 2015

From @ronaldxs

From irc

http://irclog.perlgeek.de/perl6/2015-06-13#i_10744864

12​:16 mr_ron m​: no strict; %h<a> = 42; {temp %h<b> = 8}
12​:16 camelia rakudo-moar af886d​: OUTPUT«Type check failed in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at /tmp/AYhNmfAB9o​:1␤␤»
12​:17 mr_ron m​: no strict; %h<a> = 42;
12​:17 camelia rakudo-moar af886d​: ( no output )
12​:17 mr_ron bug I think
12​:19 Ven m​: temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«5===SORRY!5=== Error while compiling /tmp/3g1OTkzVIM␤Variable '%h' is not declared␤at /tmp/3g1OTkzVIM​:1␤------> 3temp 7⏏5%h<b> = 8␤»
12​:19 yqt joined #perl6
12​:19 Ven m​: no strict; temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«Type check failed in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at /tmp/dvEGWzXNXu​:1␤␤»
12​:19 Ven m​: no strict; (temp %h)<b> = 8
12​:19 camelia rakudo-moar af886d​: ( no output )
12​:19 Ven mr_ron​: I think that's the issue :)
12​:22 mr_ron Good golf anyway ...

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

From @AlexDaniel

Still reproducible (2017.11,HEAD(e5b660e))

On 2015-06-13 05​:48​:13, ronaldxs wrote​:

From irc

http://irclog.perlgeek.de/perl6/2015-06-13#i_10744864

12​:16 mr_ron m​: no strict; %h<a> = 42; {temp %h<b> = 8}
12​:16 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/AYhNmfAB9o​:1␤␤»
12​:17 mr_ron m​: no strict; %h<a> = 42;
12​:17 camelia rakudo-moar af886d​: ( no output )
12​:17 mr_ron bug I think
12​:19 Ven m​: temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«5===SORRY!5===
Error while compiling /tmp/3g1OTkzVIM␤Variable '%h' is not declared␤at
/tmp/3g1OTkzVIM​:1␤------> 3temp 7⏏5%h<b> = 8␤»
12​:19 yqt joined #perl6
12​:19 Ven m​: no strict; temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/dvEGWzXNXu​:1␤␤»
12​:19 Ven m​: no strict; (temp %h)<b> = 8
12​:19 camelia rakudo-moar af886d​: ( no output )
12​:19 Ven mr_ron​: I think that's the issue :)
12​:22 mr_ron Good golf anyway ...

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

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

@p6rt
Copy link
Author

p6rt commented Dec 4, 2017

From @lizmat

The problem with let/temp for this situation has been fixed with 752299767bac3c49 . And tests are needed for that.

However, the underlying issue is that the default value of container descriptors created automatically with “no strict” are Mu rather than Any. This will need some deeper research.
Either this ticket should remain open, or we should create another issue for this.

On 3 Dec 2017, at 04​:45, Aleks-Daniel Jakimenko-Aleksejev via RT <perl6-bugs-followup@​perl.org> wrote​:

Still reproducible (2017.11,HEAD(e5b660e))

On 2015-06-13 05​:48​:13, ronaldxs wrote​:

From irc

http://irclog.perlgeek.de/perl6/2015-06-13#i_10744864

12​:16 mr_ron m​: no strict; %h<a> = 42; {temp %h<b> = 8}
12​:16 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/AYhNmfAB9o​:1␤␤»
12​:17 mr_ron m​: no strict; %h<a> = 42;
12​:17 camelia rakudo-moar af886d​: ( no output )
12​:17 mr_ron bug I think
12​:19 Ven m​: temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«5===SORRY!5===
Error while compiling /tmp/3g1OTkzVIM␤Variable '%h' is not declared␤at
/tmp/3g1OTkzVIM​:1␤------> 3temp 7⏏5%h<b> = 8␤»
12​:19 yqt joined #perl6
12​:19 Ven m​: no strict; temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/dvEGWzXNXu​:1␤␤»
12​:19 Ven m​: no strict; (temp %h)<b> = 8
12​:19 camelia rakudo-moar af886d​: ( no output )
12​:19 Ven mr_ron​: I think that's the issue :)
12​:22 mr_ron Good golf anyway ...

@p6rt
Copy link
Author

p6rt commented Dec 4, 2017

From @lizmat

Properly fixed with e5b49ce , tests needed for container type / default value of auto-defined
variables.

On 3 Dec 2017, at 04​:45, Aleks-Daniel Jakimenko-Aleksejev via RT <perl6-bugs-followup@​perl.org> wrote​:

Still reproducible (2017.11,HEAD(e5b660e))

On 2015-06-13 05​:48​:13, ronaldxs wrote​:

From irc

http://irclog.perlgeek.de/perl6/2015-06-13#i_10744864

12​:16 mr_ron m​: no strict; %h<a> = 42; {temp %h<b> = 8}
12​:16 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/AYhNmfAB9o​:1␤␤»
12​:17 mr_ron m​: no strict; %h<a> = 42;
12​:17 camelia rakudo-moar af886d​: ( no output )
12​:17 mr_ron bug I think
12​:19 Ven m​: temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«5===SORRY!5===
Error while compiling /tmp/3g1OTkzVIM␤Variable '%h' is not declared␤at
/tmp/3g1OTkzVIM​:1␤------> 3temp 7⏏5%h<b> = 8␤»
12​:19 yqt joined #perl6
12​:19 Ven m​: no strict; temp %h<b> = 8
12​:19 camelia rakudo-moar af886d​: OUTPUT«Type check failed
in binding cont; expected 'Any' but got 'Mu'␤ in block <unit> at
/tmp/dvEGWzXNXu​:1␤␤»
12​:19 Ven m​: no strict; (temp %h)<b> = 8
12​:19 camelia rakudo-moar af886d​: ( no output )
12​:19 Ven mr_ron​: I think that's the issue :)
12​:22 mr_ron Good golf anyway ...

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @zoffixznet

Tests​: Raku/roast@0fb5a0116bd0932c2b07a32c

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

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

@p6rt p6rt closed this as completed Dec 12, 2017
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant