On 05/27/2018 04:17 PM, Brandon Allbery wrote:
In the long form, yes. That's why the ^ shorthand exists.

With the long form you have to start from an object of the same type to get to its metamodel, then pass the object you're actually asking about to the metamodel method; the simplest way to do this is to reuse the same object.

On Sun, May 27, 2018 at 7:16 PM ToddAndMargo <toddandma...@zoho.com <mailto:toddandma...@zoho.com>> wrote:

    On 05/27/2018 03:42 PM, Brian Duggan wrote:
     >       ~ $ perl6 -e 'say 12.HOW.name <http://12.HOW.name>(12)'
     >       Int

    Does the "12" have to be repeated?

Apparently what is in the () doesn't matter as long
as there is something


Couldn't help myself:

$ perl6 -e 'say 12.HOW.name(13)'
Int

$ perl6 -e 'say 12.HOW.name(0.5)'
Int

$ perl6 -e 'say 0.5.HOW.name(1)'
Rat

$ perl6 -e 'say 0.5.HOW.name(.)'
===SORRY!=== Error while compiling -e
Malformed postfix call
at -e:1
------> say 0.5.HOW.name(.⏏)

$ perl6 -e 'say 0.5.HOW.name("A")'
Rat

$ perl6 -e 'say 0.5.HOW.name()'
Too few positionals passed; expected 2 arguments but got 1
  in block <unit> at -e line 1

Reply via email to