On 2020-01-28 11:59, Trey Harris wrote:


On Tue, Jan 28, 2020 at 14:55 ToddAndMargo via perl6-users <perl6-us...@perl.org <mailto:perl6-us...@perl.org>> wrote:

    No I am really confused:

    What part of

          my int8 $u = 0xF8; $u.range

    is not following

          method range(--> Range:D)

    ?

Unless you’re getting the line `method range(--> Range:D)` from somewhere else, you’re looking at
https://docs.raku.org/routine/range, which says

 > Documentation for method |range| assembled from the following types:

 > class X::OutOfRange <https://docs.raku.org/routine/range#___top>

`int8` is not an `X:OutOfRange` object (which is an Exception), so it can’t participate in the method you reference.


Okay, I think I get it.  I missed the "X:OutOfRange"
and expected the qualifier to be in the definition line.

What exactly is "X:OutOfRange" anyway?

Reply via email to