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

Return signature issues #4611

Closed
p6rt opened this issue Oct 1, 2015 · 4 comments
Closed

Return signature issues #4611

p6rt opened this issue Oct 1, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Oct 1, 2015

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

Searchable as RT126232$

@p6rt
Copy link
Author

p6rt commented Oct 1, 2015

From @lizmat

[10​:09​:15] <lizmat> m​: say (-> --> Int { |(1,2,3) })().WHAT # eh, shouldn't this fail ?
[10​:09​:16] <+camelia> rakudo-moar 92be57​: OUTPUT«(Slip)␤»
[10​:11​:10] <masak> lizmat​: at compile time, yes.
[10​:11​:24] <lizmat> well, ideally, yes
[10​:11​:32] <masak> yes
[10​:11​:32] <lizmat> but I'll settle for runtime
[10​:11​:38] <lizmat> for now
[10​:11​:54] masak .oO( or both ) :P
[10​:11​:57] <lizmat> m​: say (-> --> Int { fail })().WHAT
[10​:11​:58] <+camelia> rakudo-moar 92be57​: ( no output )
[10​:12​:25] <lizmat> m​: say (-> --> Int { die })().WHAT
[10​:12​:26] <+camelia> rakudo-moar 92be57​: OUTPUT«Died␤ in block <unit> at /tmp/i4Xc5H0FAT​:1␤␤»
[10​:12​:51] <timotimo> well, fail works with the outer Routine, so at least i understand the first thing

@p6rt
Copy link
Author

p6rt commented Dec 11, 2015

From @jnthn

On Thu Oct 01 01​:20​:18 2015, elizabeth wrote​:

[10​:09​:15] <lizmat> m​: say (-> --> Int { |(1,2,3) })().WHAT #
eh, shouldn't this fail ?
[10​:09​:16] <+camelia> rakudo-moar 92be57​: OUTPUT«(Slip)␤»
[10​:11​:10] <masak> lizmat​: at compile time, yes.
[10​:11​:24] <lizmat> well, ideally, yes
[10​:11​:32] <masak> yes
[10​:11​:32] <lizmat> but I'll settle for runtime
[10​:11​:38] <lizmat> for now
[10​:11​:54] masak .oO( or both ) :P

Now fails (at runtime, we can look into compile time in the future). Tested in S04-blocks-and-statements/pointy.t.

@p6rt
Copy link
Author

p6rt commented Dec 11, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 11, 2015

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

@p6rt p6rt closed this as completed Dec 11, 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