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

Operator starting with a bang (!) and having a Unicode character in it not recognized by Rakudo #3496

Closed
p6rt opened this issue Aug 30, 2014 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2014

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

Searchable as RT122654$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2014

From @masak

<masak> ok, second iffy-related weirdness​:
<masak> m​: multi infix​:«<​:» { $^l lt $^r }; multi infix​:«!<​:» {
not($^l &lt;​: $^r) }; say "foo" !<​: "bar"
<camelia> rakudo-moar d8c834​: OUTPUT«True␤»
<masak> now watch as I perform my magic trick​:
<masak> m​: multi infix​:«≃» { $^l lt $^r }; multi infix​:«!≃» { not($^l
≃ $^r) }; say "foo" !≃ "bar"
<camelia> rakudo-moar d8c834​: OUTPUT«===SORRY!=== Error while
compiling /tmp/q8BePJqzE4␤Cannot negate ≃ because it is not iffy
enough␤at /tmp/q8BePJqzE4​:1␤------> x​:«!<​:» { not($^l ≃ $^r) }; say
"foo" !≃⏏ "bar"␤»
<masak> *exactly* the same code -- just with a Unicode operator instead!
* masak submits rakudobug

Surely if the first bit of code works, the second should, too.

@p6rt
Copy link
Author

p6rt commented Aug 30, 2014

From @masak

Heh; just in case someone takes a close look at that error message and is terribly confused... here's the correctly pasted one​:

<masak> m​: multi infix​:«≃» { $^l lt $^r }; multi infix​:«!≃» { not($^l ≃ $^r) }; say "foo" !≃ "bar"
<camelia> rakudo-moar d8c834​: OUTPUT«===SORRY!=== Error while compiling /tmp/weCLGmom3M␤Cannot negate ≃ because it is not iffy enough␤at /tmp/weCLGmom3M​:1␤------> ix​:«!≃» { not($^l ≃ $^r) }; say "foo" !≃⏏ "bar"␤»

That's better. Nothing to see here, move along.

@p6rt
Copy link
Author

p6rt commented Feb 16, 2015

From @Mouq

This appears to have been fixed at some point​:

22​:29 <Mouq> r​: multi infix​:«≃» { $^l lt $^r }; multi infix​:«!≃» { not($^l ≃ $^r) }; say "foo" !≃ "bar"
22​:29 <camelia> rakudo-{parrot,moar} 127c99​: OUTPUT«True␤»

Marking as testneeded

On Sat Aug 30 02​:52​:25 2014, masak wrote​:

Heh; just in case someone takes a close look at that error message and
is terribly confused... here's the correctly pasted one​:

<masak> m​: multi infix​:«≃» { $^l lt $^r }; multi infix​:«!≃» { not($^l
≃ $^r) }; say "foo" !≃ "bar"
<camelia> rakudo-moar d8c834​: OUTPUT«===SORRY!=== Error while
compiling /tmp/weCLGmom3M␤Cannot negate ≃ because it is not iffy
enough␤at /tmp/weCLGmom3M​:1␤------> ix​:«!≃» { not($^l ≃ $^r) }; say
"foo" !≃⏏ "bar"␤»

That's better. Nothing to see here, move along.

@p6rt
Copy link
Author

p6rt commented Feb 16, 2015

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

@p6rt
Copy link
Author

p6rt commented Feb 17, 2015

From @usev6

I added a test to S03-operators/misc.t with commit Raku/roast@deaf607dfb

I'm closing this ticket as resolved.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Feb 17, 2015

From @usev6

I added a test to S03-operators/misc.t with commit Raku/roast@deaf607dfb

I'm closing this ticket as resolved.

@p6rt
Copy link
Author

p6rt commented Feb 17, 2015

@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