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

STD.pm disallows ^^ in prefix position, Rakudo doesn't #1562

Closed
p6rt opened this issue Mar 1, 2010 · 14 comments
Closed

STD.pm disallows ^^ in prefix position, Rakudo doesn't #1562

p6rt opened this issue Mar 1, 2010 · 14 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 1, 2010

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

Searchable as RT73198$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: say (7^^^^^^7).WHAT
<p6eval> rakudo 70667a​: OUTPUT«Method 'WHAT' not found for invocant of
class 'Undef' [...]
<diakopter> o_O
<diakopter> std​: say (7^^^^^^7).WHAT
<p6eval> std 29733​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Preceding
context expects a term, but found infix ^^ instead at /tmp/8KnrsfoSCn
line 1​:␤------> [32msay (7^^^^�[33m⏏�[31m^^7).WHAT�[0m␤FAILED 00​:01
106m␤»
<masak> it parses.
<diakopter> not in std
<masak> oh wait. you're right.
* masak submits rakudobug
<masak> rakudo​: 7^^^^^^7
<p6eval> rakudo 70667a​: ( no output )

@p6rt
Copy link
Author

p6rt commented Mar 1, 2010

From @masak

<diakopter> std​: say (^^0)
<p6eval> std 29903​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Preceding
context expects a term, but found infix ^^ instead [...] FAILED 00​:01
105m␤»
<diakopter> rakudo​: say (^^0)
<p6eval> rakudo af0424​: OUTPUT«␤»
* masak submits rakudobug
<diakopter> :)
<diakopter> ltm fail, it seems
<TimToady> there's a specific rule disallowing prefix​:<^^>
<TimToady> token prefix​:sym<^^>
<TimToady> { <sym> <.badinfix> <O(|%symbolic_unary)> }

@p6rt
Copy link
Author

p6rt commented Mar 4, 2010

From @masak

<diakopter> std​: say 1%^^1
<p6eval> std 29936​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Preceding
context expects a term, but found infix ^^ instead [...] FAILED 00​:01
105m␤»
<diakopter> rakudo​: say 1%^^1
<p6eval> rakudo 37e574​: OUTPUT«1␤»
* masak submits [WEIRD] rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @bbkr

on * release

[15​:31] <bbkr> star​: say 1%^^1
[15​:31] <p6eval> star 2010.07​: OUTPUT«0␤»

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

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

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @bbkr

misclick. marked as "new" again

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

@bbkr - Status changed from 'open' to 'new'

@p6rt
Copy link
Author

p6rt commented Aug 18, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM​: still broken (passes while should not compile)

bbkr​:nom bbkr$ ./perl6 -e 'say (7^^^^^^7).WHAT'
Nil

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM​: behavior changed but still incorrect

bbkr​:nom bbkr$ ./perl6 -e 'say (^^0)'
0..^0

STD​:

std bb4f150​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Expecting a term, but
found either infix ^^ or redundant prefix ^␤ (to suppress this message,
please use space between ^ ^) at /tmp/YGKxUERTy2 line 1​:␤------>
�[32msay (^^�[33m⏏�[31m0)�[0m␤Parse failed␤FAILED 00​:01 119m␤»

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

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

@p6rt
Copy link
Author

p6rt commented Mar 4, 2015

From @Mouq

Tests added in Roast commit​:

commit afcf79755ff704d4c07c5384011b6fe94492e752
Author​: Mouq <alexmoquin@​gmail.com>
Date​: Wed Mar 4 00​:28​:08 2015 -0500

  Add tests for RTs #​73198 and #​76436

Closing as resolved :)

On Tue Sep 13 15​:20​:40 2011, bbkr wrote​:

NOM​: behavior changed but still incorrect

bbkr​:nom bbkr$ ./perl6 -e 'say (^^0)'
0..^0

STD​:

std bb4f150​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m␤Expecting a term, but
found either infix ^^ or redundant prefix ^␤ (to suppress this message,
please use space between ^ ^) at /tmp/YGKxUERTy2 line 1​:␤------>
�[32msay (^^�[33m⏏�[31m0)�[0m␤Parse failed␤FAILED 00​:01 119m␤»

@p6rt p6rt closed this as completed Mar 4, 2015
@p6rt
Copy link
Author

p6rt commented Mar 4, 2015

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant