On Thu, 19 May 2005, Juerd wrote:

Ingo Blechschmidt skribis 2005-05-19 22:45 (+0200):
  class Foo {
    method bar() { 42 }
    method baz() { &bar }
  }
  my $ref = Foo.baz;

My guess:

   Foo.$ref
   $object.$ref

Just like in Perl 5.

I think Ingo was trying to explicitly specify the normally-implicit invocant; ie, invoke the method via the reference *without* using a '.'.
If this is possible (and I think it is), it's not (yet) clear what the
syntax would be. Maybe
$ref(Foo.new():)
--scott


shotgun Diplomat Leitrim Columbia PBFORTUNE planning operative Hager KUBARK Suharto AEFOXTROT ZPSEMANTIC KUFIRE Yeltsin AK-47 immediate
( http://cscott.net/ )

Reply via email to