<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dave had asked about object type comparison, and I had said that
    there is a better way. Here it is:<br>
    <br>
    <b>isa_test.p6</b><br>
    <hr size="2" width="100%"><tt>#!/usr/bin/env perl6</tt><tt><br>
    </tt><tt><br>
    </tt><tt>use v6;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>my Int $foo;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>if $foo.isa(Int) {</tt><tt><br>
    </tt><tt>  say $foo.WHAT;</tt><tt><br>
    </tt><tt>}</tt><br>
    <hr size="2" width="100%"><b>Output:</b><br>
    <hr size="2" width="100%"><tt>$ perl6 isa_test.p6</tt><tt><br>
    </tt><tt>(Int)</tt><br>
    <hr size="2" width="100%"><br>
    Also, since the talk I saw mention that using .WHAT should be left
    for debugging, and is a code smell if used in an actual comparison.<br>
    <br>
  </body>
</html>