"Real" is a role (a collection of common methods reusable by multiple
classes/types), not itself a class/type. Similarly, "Positional" is a role
which provides common methods to "Array", "List", and "Seq" among others.

On Sun, May 27, 2018 at 5:50 PM ToddAndMargo <toddandma...@zoho.com> wrote:

> Hi All,
>
> What is wrong with this picture?  Is my
> type being changed or are "Num" and "Rat" in
> a subset of "Real"?
>
> Also, what do I alter to get ^name to say real?
>
> $ p6 'my Real $x= 5e65; say $x.^name'
> Num
>
> $ p6 'my Real $x= 5.5; say $x.^name'
> Rat
>
>
> Many thanks,
> -T
>


-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to