range problems

2020-01-27 Thread ToddAndMargo via perl6-users
Hi Al, Now what am I doing wrong? > my Int $u = 0xF8; say $u.Range; Invocant of method 'Range' must be a type object of type 'Int', not an object instance of type 'Int'. Did you forget a 'multi'? When is an Int not an Int? Perplexed, -T

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Hi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard to decipher.

range doc page

2020-01-27 Thread ToddAndMargo via perl6-users
Perplexed, -THi All, On https://docs.raku.org/routine/range, it states: method range(--> Range:D) What is being said? method I understand. Range would be the name of the method --> means is return the range of what was fed the method and is defined This one ain't all the hard t

Re: range doc page

2020-01-27 Thread Kevin Pye
There's no need to ask essentially the same question three times. https://docs.raku.org/routine/range is quite clearly the wrong page. That's about a method on the class X::OutOfRange, and not a method on Int. You want https://docs.raku.org/routine/Range, whic