Re: (multi)subroutine names

2005-06-03 Thread Rod Adams
dakkar wrote: Say I have: multi sub foo(Array $a,Int $b) {...} multi sub foo(Hash %a, Int $b) {...} and I want to (distinctly) wrap each multisub, say for testing, or AOP, or whatever. How do I get the two different code references? As far as i can gather from the Apocalipses and Synopses, the

Re: Perl6 and support for Refactoring IDE's

2005-06-03 Thread J Matisse Enzer
On May 26, 2005, at 10:03 AM, Piers Cawley wrote: Stevan Little <[EMAIL PROTECTED]> writes: ... The way I see it working is that the language itself has a bunch of minimal hooks that get triggered by various phases of compilation etc. Your editor then becomes something that instruments the c

Re: (multi)subroutine names

2005-06-03 Thread Yuval Kogman
With a meta model for code signatures you could generate a code signature and then ask it to locate any matching multis. For a more concrete handle on how this might look if I were king- wait a while... ;-) When I have more time to finalize docs/mmd.kwid and then describe the meta model for func

(multi)subroutine names

2005-06-03 Thread dakkar
Say I have: multi sub foo(Array $a,Int $b) {...} multi sub foo(Hash %a, Int $b) {...} and I want to (distinctly) wrap each multisub, say for testing, or AOP, or whatever. How do I get the two different code references? As far as i can gather from the Apocalipses and Synopses, there should be a

Re: Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
Austin Hastings wrote: --- James Mastros <[EMAIL PROTECTED]> wrote: Millsa Erlas wrote: I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds

MMD and redefinition

2005-06-03 Thread dakkar
In Perl5, if I do: sub foo {return 1} sub foo {return 2} print foo(); I get a redefinition error, and a '2' on STDOUT. Can I assume this will be the same in Perl6? i.e. can I write a test for pugs to check this? Moreover: sub foo(Num $a) {return 1} sub foo(Str $a) {return 2} print foo(1),

Re: Idea for making @, %, $ optional

2005-06-03 Thread Luke Palmer
On 6/3/05, Millsa Erlas <[EMAIL PROTECTED]> wrote: > Does this allow the grammer rules of the language to be changed so that > this could be implemented? How does this work? Yes. In fact, one of the big goals of perl 6 is to allow people to mutate the grammar of the language. If you just want sc

Re: Idea for making @, %, $ optional

2005-06-03 Thread Austin Hastings
--- James Mastros <[EMAIL PROTECTED]> wrote: > Millsa Erlas wrote: > > I have thought of an interesting idea that may allow Perl 6 to make > the > > $, @, and % optional on many uses of variables. This involves > simply > > extending the function namespace to include all kinds of > structures, a

Re: Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
James Mastros wrote: Millsa Erlas wrote: I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds of structures, and thus the function namespace does not req

Re: Idea for making @, %, $ optional

2005-06-03 Thread James Mastros
Millsa Erlas wrote: > I have thought of an interesting idea that may allow Perl 6 to make the > $, @, and % optional on many uses of variables. This involves simply > extending the function namespace to include all kinds of structures, and > thus the function namespace does not require symbols, the

Re: date and time formatting

2005-06-03 Thread Rob Kinyon
> localtime() and gmtime() seem fairly core to me. The array contexts are > simple, and the scalar context is an RFC valid string. Nothing too heavy > there. The time() function is "typically" only moderately useful without > localtime(). This is true if the time() function returns a simple sca

Re: [PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Leopold Toetsch
Nigel Sandever <[EMAIL PROTECTED]> wrote: Thanks, applied - r8263 > Further thoughts on the questions in comments invited. Yeah. > njs leo

Re: [PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Nigel Sandever
Apologies for the wrong list. Should I resend to the correct one? njs

using rules

2005-06-03 Thread BÁRTHÁZI András
Hi, I'm working on a web templating system, and I'm wondering how should I use rules? I have these defs: rule elem { \< wts \: (<[a..z]>+) \/ \> } rule block { \< wts \: (<[a..z]>+)\>(.*?)\< \/ wts \: $1 \> } I would like to execute subroutines during the evaluation. What sh

[PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Nigel Sandever
Further thoughts on the questions in comments invited. njs win32-exec.c.patch Description: Binary data

Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds of structures, and thus the function namespace does not require symbols, they are optional. The int

Re: Revisiting .chars (and friends) in list context

2005-06-03 Thread Stuart Cook
On 6/3/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > What I would like to be able to do is: > > my $str = 'hello'; > my @chars = $str.chars; # I can't see this being a problem at all. For starters, the whole "what is a character" issue is just as relevant to +($foo.chars) as it is to list($foo