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

Stub code or “fail” exits silently #4745

Closed
p6rt opened this issue Nov 13, 2015 · 4 comments
Closed

Stub code or “fail” exits silently #4745

p6rt opened this issue Nov 13, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Nov 13, 2015

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

Searchable as RT126631$

@p6rt
Copy link
Author

p6rt commented Nov 13, 2015

From @AlexDaniel

Code​:
fail; say 'hello'

Or this code​:
�; say 'hello'

Result​:
no output

Which was noticed when I did this accidentally​:
my @​a = 1, 2 â�¦â�¦ *; say 'hello';

<TimToady> shouldn't be throwing that away

Yeah, perhaps.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

From @jnthn

On Fri Nov 13 09​:53​:04 2015, alex.jakimenko@​gmail.com wrote​:

Code​:
fail; say 'hello'

Or this code​:
�; say 'hello'

Result​:
no output

Which was noticed when I did this accidentally​:
my @​a = 1, 2 â�¦â�¦ *; say 'hello';

<TimToady> shouldn't be throwing that away

Yeah, perhaps.

This issue was resolved recently. Now it does this​:

C​:\consulting\rakudo>perl6-m -e "fail; say 'hello'"
Failed
  in block <unit> at -e​:1

And same for ... since that just calls fail. Tests already in S04-exceptions/fail.t.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

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

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