Re: Perl 6 regexes... (fwd)

2002-08-12 Thread Sean O'Rourke
What Dan says. If you're interested, there are at least three options: - a fairly well-developed compiler for perl 5 regexes (languages/regex). - a less well-developed compiler built into the prototype Perl 6 compiler (languages/perl6) - a set of regex ops in rx.ops, suitable for starting

Re: 'while {' in Perl 6

2002-08-12 Thread [EMAIL PROTECTED]
From: Larry Wall [EMAIL PROTECTED] (Had an interesting typo there. I put = insteaqd of -. I wonder how much trouble that sort of thing is gonna cause. Maybe pairs can be disallowed or warned about where a pointy sub might be expected.) I foresee a lot of problems. To my Perl5 eyes, -

Re: A Perl 6 class question

2002-08-12 Thread Allison Randal
On Fri, Aug 09, 2002 at 03:09:29PM -0400, Chris Dutton wrote: This one actually came to me just the other night. Would it be possible in Perl 6 to create anonymous classes? Something like: my $foo_class = class { method new { # yada yada yada } } my

Re: A Perl 6 class question

2002-08-12 Thread Trey Harris
Another one... class Foo is Bar; method a { setup(); } 1; # EOF (Is the 1 still required? I think I heard Damian say it was going away.) The question is, is this valid, if Bar defines a sub/static method 'setup'? Is my instict right that 'sub' in a class is a 'class/static method' in the

Re: 'while {' in Perl 6

2002-08-12 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: Question: if the compiler *doesn't* raise an error, what happens? How would the following code be interpreted, even insanely? An endless loop perhaps? while something() = $_ { ... } Changing the closure to use »=« instead of »-« yields with current P6C: Can't

Re: A Perl 6 class question

2002-08-12 Thread Allison Randal
On Sat, Aug 10, 2002 at 07:30:19PM -0400, Chris Dutton wrote: The only problem I could see, and I wanted to wait for at least one other opinion before mentioning this, is rewriting the above as: my $foo_class $foo_obj = $foo_class.new; I'm not exactly sure what you're trying to do with

RE: Regular and Context-Free languages

2002-08-12 Thread Thom Boyer
Steve Find said on August 09, 2002 6:24 PM: Anyone happen to know where pushdown automata fit in this list? Can they handle context-sensitive, just context-free, or some other subset? Mark Reed said on August 09, 2002 7:60 PM: To recognize a context-sensitive language I think you need a Turing

Re: A Perl 6 class question

2002-08-12 Thread Chris Dutton
On Monday, August 12, 2002, at 01:27 PM, Allison Randal wrote: On Sat, Aug 10, 2002 at 07:30:19PM -0400, Chris Dutton wrote: The only problem I could see, and I wanted to wait for at least one other opinion before mentioning this, is rewriting the above as: my $foo_class $foo_obj =