On Wed, 2009-12-09 at 00:16 -0500, Austin Hastings wrote:
> Geoffrey Broadwell wrote:
> > On Tue, 2009-12-08 at 18:58 -0500, Austin Hastings wrote:
> >
> >> I know that I could 'metaprogram' this stuff by using string
> >> manipulation on the various method names, and then calling a
> >> (self
Geoffrey Broadwell wrote:
On Tue, 2009-12-08 at 18:58 -0500, Austin Hastings wrote:
I know that I could 'metaprogram' this stuff by using string
manipulation on the various method names, and then calling a
(self-built) call_method($obj, $method_name, ...args...) function.
You don't ne
On Tue, 2009-12-08 at 18:58 -0500, Austin Hastings wrote:
> I know that I could 'metaprogram' this stuff by using string
> manipulation on the various method names, and then calling a
> (self-built) call_method($obj, $method_name, ...args...) function.
You don't need to write this by hand. NQP-
I'm writing some NQP, which isn't quite perl6, and I've got this method:
method afterall_methods() {
my @methods := self._afterall_methods;
unless @methods {
@methods := self.fetch_afterall_methods;
self._afterall_methods(@methods);
}
re