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

Native int don't default to zero in Rakudo #2519

Closed
p6rt opened this issue Oct 16, 2011 · 8 comments
Closed

Native int don't default to zero in Rakudo #2519

p6rt opened this issue Oct 16, 2011 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Oct 16, 2011

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

Searchable as RT101450$

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

From @masak

<masak> nom​: my int $x; say $x
<p6eval> nom 25af2d​: OUTPUT«57836072â�¤Â»
<masak> ahahahah.
* masak submits rakudobug

What... what is that number? :-) Expected output​: OUTPUT«0â�¤Â»

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

From @masak

On Sun Oct 16 07​:19​:52 2011, masak wrote​:

<masak> nom​: my int $x; say $x
<p6eval> nom 25af2d​: OUTPUT«57836072â�¤Â»
<masak> ahahahah.
* masak submits rakudobug

What... what is that number? :-) Expected output​: OUTPUT«0â�¤Â»

<benabik> masak​: Are they supposed to be initialized? C doesn't for
speed, I know.
<masak> benabik​: I'll check, but yes, they are :)
<masak> S02​:639​: Variables of non-native types start out containing an
undefined value
<masak> unless explicitly initialized to a defined value.
<masak> oops, I'm wrong! mooting ticket.
<masak> benabik++

Ticket rejected. Submitter should read spec more carefully. :-)

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

@masak - Status changed from 'new' to 'rejected'

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

From @masak

On Sun Oct 16 07​:25​:10 2011, masak wrote​:

On Sun Oct 16 07​:19​:52 2011, masak wrote​:

<masak> nom​: my int $x; say $x
<p6eval> nom 25af2d​: OUTPUT«57836072â�¤Â»
<masak> ahahahah.
* masak submits rakudobug

What... what is that number? :-) Expected output​: OUTPUT«0â�¤Â»

<benabik> masak​: Are they supposed to be initialized? C doesn't for
speed, I know.
<masak> benabik​: I'll check, but yes, they are :)
<masak> S02​:639​: Variables of non-native types start out containing an
undefined value
<masak> unless explicitly initialized to a defined value.
<masak> oops, I'm wrong! mooting ticket.
<masak> benabik++

Ticket rejected. Submitter should read spec more carefully. :-)

<benabik> masak​: That said "non-native types".
<masak> oh! :/
* masak can't read
<benabik> S02​:1212
<benabik> masak​: ^^ floats default to NaN, int to 0
* masak reopens ticket

Ticket re-opened. Ticket moderator should stop to reflect before knee-
jerking ticket rejections. :-P

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

@masak - Status changed from 'rejected' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 25, 2011

From @jnthn

On Sun Oct 16 07​:35​:16 2011, masak wrote​:

On Sun Oct 16 07​:25​:10 2011, masak wrote​:

On Sun Oct 16 07​:19​:52 2011, masak wrote​:

<masak> nom​: my int $x; say $x
<p6eval> nom 25af2d​: OUTPUT«57836072â�¤Â»
<masak> ahahahah.
* masak submits rakudobug

What... what is that number? :-) Expected output​: OUTPUT«0â�¤Â»

<benabik> masak​: Are they supposed to be initialized? C doesn't for
speed, I know.
<masak> benabik​: I'll check, but yes, they are :)
<masak> S02​:639​: Variables of non-native types start out containing an
undefined value
<masak> unless explicitly initialized to a defined value.
<masak> oops, I'm wrong! mooting ticket.
<masak> benabik++

Ticket rejected. Submitter should read spec more carefully. :-)

<benabik> masak​: That said "non-native types".
<masak> oh! :/
* masak can't read
<benabik> S02​:1212
<benabik> masak​: ^^ floats default to NaN, int to 0
* masak reopens ticket

Ticket re-opened. Ticket moderator should stop to reflect before knee-
jerking ticket rejections. :-P

Fixed for both int and num. Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Nov 12, 2011

From @tadzik

On Tue Oct 25 06​:47​:00 2011, jnthn@​jnthn.net wrote​:

Fixed for both int and num. Tagging testneeded.

/jnthn

Tests in 2a83aa9. Closable.

@p6rt
Copy link
Author

p6rt commented Nov 12, 2011

@moritz - 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