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

Bug to report: cardinal called an integer

Thread Next
ToddAndMargo via perl6-users
January 9, 2020 18:10
Bug to report: cardinal called an integer
Message ID:
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



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About