develooper Front page | perl.perl6.users | Postings from January 2020

Bug to report: cardinal called an integer

Thread Next
From:
ToddAndMargo via perl6-users
Date:
January 9, 2020 18:10
Subject:
Bug to report: cardinal called an integer
Message ID:
3f7b7e99-7d4c-6b0c-b77c-03c567f5ba42@zoho.com
Hi All,

A bug to report:

$ perl6 -v
This is Rakudo version 2019.07.1 built on MoarVM version 2019.07.1
implementing Perl 6.d.


$ p6 'my uint32 $c; $c = "ABC";'
This type cannot unbox to a native integer: P6opaque, Str
   in block <unit> at -e line 1

"uint32" is not an "integer".  It is a cardinal.  If
they really want to use the word "integer" for cardinal,
they should change the wording to "unsigned integer".

Picky, picky, picky

:-)

-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About