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

LTA error message on ?? : #1238

Closed
p6rt opened this issue Aug 19, 2009 · 10 comments
Closed

LTA error message on ?? : #1238

p6rt opened this issue Aug 19, 2009 · 10 comments

Comments

@p6rt
Copy link

p6rt commented Aug 19, 2009

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

Searchable as RT68672$

@p6rt
Copy link
Author

p6rt commented Sep 4, 2008

From @masak

r30750​:
$ ./perl6 -e '1 ?? 2 : 3'
ResizablePMCArray​: Can't pop from an empty array!
[...]

Yes, it should be ?? !!, so the program above shouldn't compile. On
the other hand, it shouldn't throw an exception either.

<pmichaud> It's okay to report the ?? : bug, although it's really a
PGE bug and might not be fixed
<masak> pmichaud​: ok
<pmichaud> (i.e., it'll get subsumed by the other PGE changes)
<masak> I can see how it's now high prio, but it might be nice to have
a ticket for it
<pmichaud> sure.
<pmichaud> Currently ?? !! is being handled by PGE's ternary​: class,
but STD.pm has it as an infix operator
<pmichaud> which works fine, but I just haven't gotten around to
switch rakudo's grammar for that yet. Maybe a ticket will prompt
someone else to do it :-)

@p6rt
Copy link
Author

p6rt commented Apr 5, 2009

From @ilyabelikin

Hi there!

1 ?? 2 :​: 3;
ResizablePMCArray​: Can't pop from an empty array!

I think not only I can use '​::' instead '!!', so I like to see some
usefull error message if that is possiable.

Thank you!

Ilya

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @moritz

Rakudo 8e0b7409d757fa938f0a3176a192291a8e9e3996​:
$ perl6 -e '1 ?? 1;'
ResizablePMCArray​: Can't pop from an empty array!
in Main (src/gen_setting.pm​:3369)

(PGE bug?)

STD.pm says​:
  Found ?? but no !!; possible precedence problem at ...

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @jnthn

Merging two tickets that identify the same underlying problem.

@p6rt
Copy link
Author

p6rt commented Apr 2, 2010

From @moritz

Now says "Confused", which is much better, but still less-than-awesome

@p6rt
Copy link
Author

p6rt commented Apr 2, 2010

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

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @coke

On Fri Apr 02 04​:37​:41 2010, moritz wrote​:

Now says "Confused", which is much better, but still less-than-awesome

Here's the output from STD for comparison​:

01​:28 <[Coke]> std​: 1 ?? 1;
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Found ?? but no !! at
  /tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤Confused at
  /tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤ expecting prefix or
  termâ�¤Parse failedâ�¤FAILED 00​:01 119mâ�¤Â»
01​:28 <[Coke]> std​: 1 ?? 2 : 3
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Please use !! rather than : at
  /tmp/7j5tGYT8Bh line 1​:â�¤------> 1 ?? 2 :â�� 3â�¤Parse failedâ�¤FAILED
  00​:01 119mâ�¤Â»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

From @tadzik

On Sun Jan 30 22​:29​:08 2011, coke wrote​:

On Fri Apr 02 04​:37​:41 2010, moritz wrote​:

Now says "Confused", which is much better, but still less-than-
awesome

Here's the output from STD for comparison​:

01​:28 <[Coke]> std​: 1 ?? 1;
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Found ?? but no !! at
/tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤Confused at
/tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤ expecting
prefix or
termâ�¤Parse failedâ�¤FAILED 00​:01 119mâ�¤Â»
01​:28 <[Coke]> std​: 1 ?? 2 : 3
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Please use !! rather
than : at
/tmp/7j5tGYT8Bh line 1​:â�¤------> 1 ?? 2 :â�� 3â�¤Parse
failed�FAILED
00​:01 119mâ�¤Â»

57f6e33510c7 [1] pushes it a little closer to perfection, for some
reason not the whole STD code was working there. Still, messages are
much better now​:

1 ?? 1
Found ?? but no !! at line 2, near ""
1 ?? 1 : 2
Found ?? but no !! at line 1, near "​: 2\n"
1 ?? 1 :​: 2
Please use !! rather than :​: at line 1, near "​:: 2\n"

@p6rt
Copy link
Author

p6rt commented Jun 1, 2012

From @diakopter

On Sun Feb 20 07​:22​:56 2011, tadzik wrote​:

On Sun Jan 30 22​:29​:08 2011, coke wrote​:

On Fri Apr 02 04​:37​:41 2010, moritz wrote​:

Now says "Confused", which is much better, but still less-than-
awesome

Here's the output from STD for comparison​:

01​:28 <[Coke]> std​: 1 ?? 1;
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Found ?? but no !!
at
/tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤Confused
at
/tmp/2ppTji_PsG line 1​:â�¤------> 1 ?? 1â��;â�¤
expecting
prefix or
termâ�¤Parse failedâ�¤FAILED 00​:01 119mâ�¤Â»
01​:28 <[Coke]> std​: 1 ?? 2 : 3
01​:28 <p6eval> std 625303c​: OUTPUT«===SORRY!===â�¤Please use !!
rather
than : at
/tmp/7j5tGYT8Bh line 1​:â�¤------> 1 ?? 2 :â�� 3â�¤Parse
failed�FAILED
00​:01 119mâ�¤Â»

57f6e33510c7 [1] pushes it a little closer to perfection, for some
reason not the whole STD code was working there. Still, messages are
much better now​:

1 ?? 1
Found ?? but no !! at line 2, near ""
1 ?? 1 : 2
Found ?? but no !! at line 1, near "​: 2\n"
1 ?? 1 :​: 2
Please use !! rather than :​: at line 1, near "​:: 2\n"

resolving.

@p6rt
Copy link
Author

p6rt commented Jun 1, 2012

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

@p6rt p6rt closed this as completed Jun 1, 2012
@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