On Sun, May 27, 2018 at 5:50 PM ToddAndMargo <toddandma...@zoho.com <mailto: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

On 05/27/2018 02:59 PM, Brandon Allbery wrote:
"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.


Thank explains it.  Thank you!

Reply via email to