On Fri, Dec 15, 2000 at 11:23:23PM -0800, Ian Hickson wrote:
> So: What I would love to see in Perl 6 is a way of having a single scalar
> that holds a reference to a particular instance's method.
>
> Is there any chance that this would be considered? Or is this already
> possible in Perl 5 but I have missed it?
How about:
my $foo = Foo->create();
my $methodref = sub { $foo->method(@_) };
&$methodref();
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
- RFC from a newbie: Method References Ian Hickson
- Re: RFC from a newbie: Method References Michael Fowler
- Re: RFC from a newbie: Method References Ian Hickson
- Re: RFC from a newbie: Method References Randal L. Schwartz
- Re: RFC from a newbie: Method References Ian Hickson
- Re: RFC from a newbie: Method References Michael G Schwern
- Re: RFC from a newbie: Method References Jeremy Howard
- Re: RFC from a newbie: Method References Michael G Schwern
- Re: RFC from a newbie: Method Referenc... Jeremy Howard
- Re: RFC from a newbie: Method Ref... Michael G Schwern
- Re: RFC from a newbie: Method... Jeremy Howard
