Re: Possible syntax for code as comment

2005-01-08 Thread Ashley Winters
On Sat, 8 Jan 2005 21:05:20 +0100, Stéphane Payrard <[EMAIL PROTECTED]> wrote: > Anyway the particular length of variables names was not the subject of > my mail, but a good syntax for aliasing name in signatures. Hmm... how about abducting the -> operator and using default variable initializatio

Re: Possible syntax for code as comment

2005-01-08 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 09:55:39PM +0100, Juerd wrote: > Stéphane Payrard skribis 2005-01-07 21:23 (+0100): > > > my $s := $subjet; > > > my $c := $complement; > > That's what I wanted to avoid. > > Why? Do you expect to use lots of one letter aliases? > > I think it's one of the most e

Dimension of slices; scalars versus 1-element arrays?

2005-01-08 Thread Craig DeForest
I just re-read Synopsis 9, which covers PDL-related actions and array slicing, and came to the conclusion that either (A) there's a hole in the syntax as it is lain out, (B) I lack sufficient understanding of what has been thought out so far, or (C) that part of the language definition isn't fi

Re: Let the hacking commence!

2005-01-08 Thread Luke Blanshard
Luke Palmer wrote: [By the way, shouldn't this grammar be called "Perl" rather than "Perl6::Grammar"?... Grammars and classes share a namespace, so I think Perl::Grammar is correct... I got the name Perl for the grammar from S05, which also gives this example: given $source_code {

Re: Let the hacking commence!

2005-01-08 Thread Luke Palmer
Luke Blanshard writes: > Luke Palmer wrote: > >This list is for people interested in building the Perl 6 compiler. Now > >you have your first real task! > > > >We have to make a formal grammar for Perl 6. Perl 6 is a huge language, > >so the task seems better done incrementally by the community

Re: Let the hacking commence!

2005-01-08 Thread Luke Blanshard
Luke Blanshard wrote: # Next comes any number of single characters or nested =begin/ # =end blocks -- but the smallest number that will match... [ . | «pod_begin_end_block» ]*? Actually I think that alternation needs to be in the other order, doesn't it? (This is within rule pod_b

Re: Let the hacking commence!

2005-01-08 Thread Luke Blanshard
Luke Palmer wrote: This list is for people interested in building the Perl 6 compiler. Now you have your first real task! We have to make a formal grammar for Perl 6. Perl 6 is a huge language, so the task seems better done incrementally by the community... Send patches to this list. OK, I'll

[perl #33716] Segfault while using readline

2005-01-08 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #33716] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=33716 > The following code segfaults when data.txt contains one line of text with no newli