Skip to content

Commit

Permalink
Clarification of output style, correct output, deletion of :skip-code…
Browse files Browse the repository at this point in the history
… declaration
  • Loading branch information
Altai-man committed Feb 1, 2017
1 parent 1be171c commit bac11b6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/Type/UInt.pod6
Expand Up @@ -13,16 +13,15 @@ Consequently, it cannot be instantiated or subclassed; however, that shouldn't a
Some examples of its behavior and uses:
=for code :skip-test
my UInt $u = 0xffff_ffff_ffff_ffff_ffff_ffff_ffff_ffff; # 64-bit unsigned value
say $u.base(16); # FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF (32 digits)
say $u.base(16); # OUTPUT: «FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF␤» (32 digits)
++$u;
say $u.base(16); # 100000000000000000000000000000000 (33 digits!)
say $u.base(16); # OUTPUT: «100000000000000000000000000000000␤» (33 digits!)
my Int $i = $u;
say $i.base(16); # same
say $u.WHAT; # (UInt)
say $i.WHAT; # (Int)
say $u.WHAT; # OUTPUT: «(Int)␤» - UInt is a subset.
say $i.WHAT; # OUTPUT: «(Int)␤»
$u = $i;
say $u.WHAT; # (Int)!! a subset of Int is an Int
say $u.WHAT; # OUTPUT: «(Int)␤» - a subset of Int is an Int
=end pod

0 comments on commit bac11b6

Please sign in to comment.