Re: p6 Q: How do I metaprogram this?

2009-12-08 Thread Geoffrey Broadwell
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

Re: p6 Q: How do I metaprogram this?

2009-12-08 Thread Austin Hastings
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

Re: p6 Q: How do I metaprogram this?

2009-12-08 Thread Geoffrey Broadwell
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-

p6 Q: How do I metaprogram this?

2009-12-08 Thread Austin Hastings
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

Perl 6 IDE: Perl 5 XL 0.02 with Padre and the Perl 6 plugin

2009-12-08 Thread Gabor Szabo
Hi, Let me announce version 0.02 of the XL Perl 5 distribution (temporary name, I hope :-) for Linux that contains a full version of Perl 5.10.1, Padre 0.51 and the Perl 6 plugin of Padre. This is still very experimental of course. You can download it from here: http://perlide.org/download/bina