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

Can't locally redefine True in Rakudo #2672

Closed
p6rt opened this issue Mar 13, 2012 · 9 comments
Closed

Can't locally redefine True in Rakudo #2672

p6rt opened this issue Mar 13, 2012 · 9 comments

Comments

@p6rt
Copy link

p6rt commented Mar 13, 2012

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

Searchable as RT111734$

@p6rt
Copy link
Author

p6rt commented Mar 13, 2012

From @masak

<masak> nom​: constant True = 42; say True
<p6eval> rakudo fee891​: OUTPUT«True␤»
<masak> hm.
<benabik> r​: constant True = 42; say +True
<p6eval> rakudo fee891​: OUTPUT«1␤»
<benabik> Huh
* masak submits rakudobug
<masak> good rakudobug day today ;)
<benabik> Oh, I was thinking it was an enum not getting numified. blah.
<jnthn> Great, not being able to change the truth is a bug :P
<TimToady> the opposite of OUTER truth is INNER truth... :P

@p6rt
Copy link
Author

p6rt commented Jun 9, 2013

From @jnthn

On Tue Mar 13 13​:35​:18 2012, masak wrote​:

<masak> nom​: constant True = 42; say True
<p6eval> rakudo fee891​: OUTPUT«True␤»
<masak> hm.
<benabik> r​: constant True = 42; say +True
<p6eval> rakudo fee891​: OUTPUT«1␤»
<benabik> Huh
* masak submits rakudobug
<masak> good rakudobug day today ;)
<benabik> Oh, I was thinking it was an enum not getting numified.
blah.
<jnthn> Great, not being able to change the truth is a bug :P
<TimToady> the opposite of OUTER truth is INNER truth... :P

Fixed​:

constant True = 42; say True

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jun 9, 2013

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

@p6rt
Copy link
Author

p6rt commented Jun 20, 2013

From @masak

On Sun Jun 09 08​:00​:22 2013, jnthn@​jnthn.net wrote​:

On Tue Mar 13 13​:35​:18 2012, masak wrote​:

<masak> nom​: constant True = 42; say True
<p6eval> rakudo fee891​: OUTPUT«True␤»
<masak> hm.
<benabik> r​: constant True = 42; say +True
<p6eval> rakudo fee891​: OUTPUT«1␤»
<benabik> Huh
* masak submits rakudobug
<masak> good rakudobug day today ;)
<benabik> Oh, I was thinking it was an enum not getting numified.
blah.
<jnthn> Great, not being able to change the truth is a bug :P
<TimToady> the opposite of OUTER truth is INNER truth... :P

Fixed​:

constant True = 42; say True

Tagging testneeded.

Nope, not fixed​:

<masak> r​: constant True = "Yeah, well, you know, that's just, like,
your opinion, man."; say True
<camelia> rakudo b2072f​: OUTPUT«True␤»
* masak adds to https://rt-archive.perl.org/perl6/Public/Bug/Display.html?
id=111734

@p6rt
Copy link
Author

p6rt commented Aug 29, 2013

From @masak

masak (>)​:

Nope, not fixed​:

<masak> r​: constant True = "Yeah, well, you know, that's just, like,
your opinion, man."; say True
<camelia> rakudo b2072f​: OUTPUT«True␤»
* masak adds to https://rt-archive.perl.org/perl6/Public/Bug/Display.html?
id=111734

This now appears to be fixed​:

<masak> r​: constant True = "yeah, well, you know, that's just, like,
your opinion, man"; say True
<camelia> rakudo e1f255​: OUTPUT«yeah, well, you know, that's just, like,
your opinion, man␤»
<masak> \o/
* masak adds that to https://rt-archive.perl.org/perl6//Public/Bug/Display.html?
id=111734

@p6rt
Copy link
Author

p6rt commented Aug 30, 2013

From 1parrota@gmail.com

On 8/29/13, Carl Mäsak via RT <perl6-bugs-followup@​perl.org> wrote​:

This now appears to be fixed​:

<masak> r​: constant True = "yeah, well, you know, that's just, like,
your opinion, man"; say True
<camelia> rakudo e1f255​: OUTPUT«yeah, well, you know, that's just, like,
your opinion, man␤»
<masak> \o/

Just what we needed; moral relativism in a programming language. :-(*

@p6rt
Copy link
Author

p6rt commented Oct 14, 2014

From @usev6

Great, redefinition of truth works as expected! I added a test to S04-declarations/constant.t with the following commit​: Raku/roast@c855d94be4

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 14, 2014

From @usev6

Great, redefinition of truth works as expected! I added a test to S04-declarations/constant.t with the following commit​: Raku/roast@c855d94be4

@p6rt
Copy link
Author

p6rt commented Oct 14, 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