Re: rule, rx and sub

2002-08-27 Thread Luke Palmer
On 27 Aug 2002, Piers Cawley wrote: Damian Conway [EMAIL PROTECTED] writes: Debbie Pickett asked: (Offtopic: can I say: $c = - $xyz { mumble } Yes. Though you need a semicolon at the end unless its the last statement in a block. Um... when did that rule come in? I thought a

Re: Inlining subrules

2002-08-27 Thread Bart Schuller
On Tue, Aug 27, 2002 at 12:21:00PM +0100, Piers Cawley wrote: *allowing* classes to be frozen) makes life very hard indeed. And no, extending via inheritance really doesn't cut it, unless I'm allowed to say CObject := NewObject and force everything that inherits from Object to inherit from

Re: rule, rx and sub

2002-08-27 Thread Sean O'Rourke
On Tue, 27 Aug 2002, Luke Palmer wrote: On 27 Aug 2002, Piers Cawley wrote: Damian Conway [EMAIL PROTECTED] writes: Debbie Pickett asked: (Offtopic: can I say: $c = - $xyz { mumble } Yes. Though you need a semicolon at the end unless its the last statement in a block.

Re: rule, rx and sub

2002-08-27 Thread Luke Palmer
On Tue, 27 Aug 2002, Sean O'Rourke wrote: On Tue, 27 Aug 2002, Luke Palmer wrote: On 27 Aug 2002, Piers Cawley wrote: Damian Conway [EMAIL PROTECTED] writes: Debbie Pickett asked: (Offtopic: can I say: $c = - $xyz { mumble } Yes. Though you need a semicolon at the

Re: rule, rx and sub

2002-08-27 Thread Trey Harris
In a message dated Tue, 27 Aug 2002, Luke Palmer writes: No, it's right. But it doesn't break that. In the grammar, C-like languages include (something like): statement: expression ';' statement: if expression block So an if _statement_ terminates itself. The } on a line of

Re: Perl 6 Summary For Week Ending 2002-08-25

2002-08-27 Thread Leopold Toetsch
Piers Cawley wrote: ( a lot ;-) Thanks for this really informative summary. Must be a lot of work. ... Actually, Leopold was something of a patch monster this week, Of course, you missed all my private mails to Sean WRT imcc perl6 patches ;-) If I read his post right, Leopold

auto deserialization

2002-08-27 Thread Steve Canfield
Will there be automatic calling of the deserialization method for objects, so that code like this DWIMs... my Date $bday = 'June 25, 2002'; _ Send and receive Hotmail on your mobile device: http://mobile.msn.com

Re: auto deserialization

2002-08-27 Thread Jonathan Scott Duff
On Tue, Aug 27, 2002 at 02:50:27PM -0700, Steve Canfield wrote: Will there be automatic calling of the deserialization method for objects, so that code like this DWIMs... my Date $bday = 'June 25, 2002'; What sort of dwimmery do you desire? It's my understanding that variable

Hypothetical synonyms

2002-08-27 Thread Aaron Sherman
I just wrote this code in Perl5: $stuff = (defined($1)?$1:$2) if /^\s*(?:(.*?)|(\S+))/; This is a common practice for me when I parse configuration and data files whose formats I define. It's nice to be able to quote fields that have spaces, and this is an easy way to parse the result. In

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Aaron Sherman wrote: : I just wrote this code in Perl5: : : $stuff = (defined($1)?$1:$2) if /^\s*(?:(.*?)|(\S+))/; : : This is a common practice for me when I parse configuration and data : files whose formats I define. It's nice to be able to quote fields that : have

Re: Hypothetical synonyms

2002-08-27 Thread Uri Guttman
TH == Trey Harris [EMAIL PROTECTED] writes: TH In a message dated 27 Aug 2002, Uri Guttman writes: m{^\s* $stuff := [ (.*?) | (\S+) ] }; TH Or, how about TH my ($fields) = /(CORE::quotelike(delim = '')|\S+)/; wouldn't quotelike automatically be inherited from the CORE:: rules like

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Uri Guttman wrote: : LW == Larry Wall [EMAIL PROTECTED] writes: : LW m{^\s*[ : LW $stuff:=(.*?) | : LW $stuff:=(\S+) : LW ]}; : : couldn't that be reduced to: : : m{^\s* $stuff := [ (.*?) | (\S+) ] }; : : the | will only return one of the

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Uri Guttman wrote: : and quoteline might even default to for its delim which would make : that line: : : my ($fields) = /(quotelike|\S+)/; That just looks like: my $field = /shellword/; Larry

Re: Hypothetical synonyms

2002-08-27 Thread Uri Guttman
LW == Larry Wall [EMAIL PROTECTED] writes: LW On 27 Aug 2002, Uri Guttman wrote: : and quoteline might even LW default to for its delim which would make : that line: LW : LW : my ($fields) = /(quotelike|\S+)/; LW That just looks like: LW my $field = /shellword/; where is the