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

sub infix:<> ( ){}; gives misleading error message about P5 diamond operator #2971

Closed
p6rt opened this issue Nov 14, 2012 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Nov 14, 2012

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

Searchable as RT115726$

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

From @bbkr

Star 2012.10 behavior

bbkr_ r​: sub infix​:<> ( ){};
p6eval rakudo c82d10​: OUTPUT«===SORRY!===â�¤Unsupported use of <>; in Perl 6 please use lines() to read input, ('') to represent a null string or () to represent an empty listâ�¤at /tmp/Jjxe80Ci_0​:1â�¤Â»

STD behavior

std 04216b1​: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Null operator is not allowed at /tmp/0aJaOg4T0V line 1​:â�¤------> [32msub infix​:<>[33mâ��[31m ( ){};[0mâ�¤Other potential difficulties​:â�¤ Pair with <> really means a Nil value, not null string; use :('') to represent the null string,â�¤ orâ�¦

bbkr_ should also complaint about something like "Null operator is not allowed " like STD, right?
* bbkr_ reports
masak yes, it should.

@p6rt
Copy link
Author

p6rt commented Mar 9, 2013

From @jnthn

On Wed Nov 14 09​:06​:28 2012, pawel.pabian@​implix.com wrote​:

Star 2012.10 behavior

bbkr_ r​: sub infix​:<> ( ){};
p6eval rakudo c82d10​: OUTPUT«===SORRY!===â�¤Unsupported use of
<>; in
Perl 6 please use lines() to read input, ('') to represent a null
string or () to represent an empty listâ�¤at /tmp/Jjxe80Ci_0​:1â�¤Â»

Now does what STD does​:

19​:22 < jnthn> r​: sub infix​:<> ( ){};
19​:22 <+p6eval> rakudo d9dc40​: OUTPUT«===SORRY!===â�¤Null operator is not
  allowedâ�¤at /tmp/OU9UhApETO​:1 ...

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Mar 9, 2013

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

@p6rt
Copy link
Author

p6rt commented Aug 11, 2014

From @peschwa

Am Sa 09. Mär 2013, 09​:43​:35, jnthn@​jnthn.net schrieb​:

On Wed Nov 14 09​:06​:28 2012, pawel.pabian@​implix.com wrote​:

Star 2012.10 behavior

bbkr_ r​: sub infix​:<> ( ){};
p6eval rakudo c82d10​: OUTPUT«===SORRY!===â�¤Unsupported use of
<>; in
Perl 6 please use lines() to read input, ('') to represent a null
string or () to represent an empty listâ�¤at /tmp/Jjxe80Ci_0​:1â�¤Â»

Now does what STD does​:

19​:22 < jnthn> r​: sub infix​:<> ( ){};
19​:22 <+p6eval> rakudo d9dc40​: OUTPUT«===SORRY!===â�¤Null operator is not
allowedâ�¤at /tmp/OU9UhApETO​:1 ...

Tagging testneeded.

/jnthn

Test has been added to roast in commit 750b9da4 as per the example above.

@p6rt
Copy link
Author

p6rt commented Sep 24, 2014

From @usev6

The test in S32-exceptions/misc.t passes and the test file is in 't/spectest.data'.

If the ticket should not be set to resolved (if there is something else to do), please comment.

@p6rt p6rt closed this as completed Sep 24, 2014
@p6rt
Copy link
Author

p6rt commented Sep 24, 2014

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

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