re: Re: Using a Regex object

2007-04-13 Thread philcrow
Moritz Lenz <[EMAIL PROTECTED]> wrote: Hi, [EMAIL PROTECTED] wrote: Can someone point me to the docs or code where I can find out how to use that Regex object (or to the proper list or channel in which to ask)? I'm hoping the regex is going to contained my named captures. It's in S05: http://p

Using a Regex object

2007-04-07 Thread philcrow
I'm working on a grammar in Perl 6 to parse Java. I followed the synopsis to get this: my $parse_tree; given $raw_method { $parse_tree = m:keepall/. That seems very good to me. Can someone point me to the docs or code where I can find out how to use that Regex object (or t

Re: Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-22 Thread philcrow
I am very interested in this. I've done a little bit of work like this in the past, for projects like Java::Swing which is a thin Inline::Java facade for coding swing UI front ends in what appears to be pure Perl. But, your plan is more intense. In particular it is more intense than $500. So

Interpolation of arrays

2005-08-05 Thread philcrow
While trying to use say for debugging, I ran across an oddity. While I can: say "[EMAIL PROTECTED]"; and say @some_array; this doesn't work: say "@some_array"; Even stranger: class SomeClass { has $.scalar_attr; has @.array_attr; method trial () { say "$.scalar_attr @.array_att

Re: Is namespace qualification really required

2005-07-19 Thread philcrow
Autrijus Tang <[EMAIL PROTECTED]> wrote: > I get errors: > 1..2 > ok 1 - default sub called > not ok 2 - default sub called in package namespace > # Failed test (t/subroutines/defaults.t line 35, column 1-62) > #Got: undef > # Looks like you failed 1 tests of 2 Did you perhaps had an

Re: Is namespace qualification really required

2005-07-19 Thread philcrow
Autrijus Tang <[EMAIL PROTECTED]> wrote: On Mon, Jul 18, 2005 at 02:47:06PM -0500, [EMAIL PROTECTED] wrote: > I did this. I included two tests, one without multiple packages (which > works) and one with them (which fails). I marked the second test todo. ...and I fixed the bug promptly. :)

Re: Is namespace qualification really required

2005-07-18 Thread philcrow
Autrijus Tang <[EMAIL PROTECTED]> wrote: On Mon, Jul 18, 2005 at 09:00:50AM -0500, [EMAIL PROTECTED] wrote: > I made the test. The problem only occurs when the sub is called from > another package, in my case that was a driving script. > > I'm not sure how to accept the invitation (or what tha

Re: Is namespace qualification really required

2005-07-18 Thread philcrow
Autrijus Tang <[EMAIL PROTECTED]> wrote: On Fri, Jul 15, 2005 at 02:16:48PM -0500, [EMAIL PROTECTED] wrote: > package MyModule; > > use v6; > sub doubler( Num $x ) { >return 2 * $x; > } > > sub value_v( Code +$func = &MyModule::doubler ) is export { >return $func( 5 ); > } > > This wor

Is namespace qualification really required

2005-07-15 Thread philcrow
I've been playing with pugs a little bit. I like it a lot. I'm especially interested in passing parameters to subs and giving them defaults. While trying to Curry in the default of a Code reference parameter, I ran into the following oddity (it seems odd to me). It looks like I must fully qu