Re: enhanced open-funktion

2004-07-15 Thread Michele Dondi
On Tue, 13 Jul 2004, Juerd wrote: open '', $foo; open '', $foo; is much harder to read than open 'r', $foo; open 'w', $foo; Are you sure?!? I would tend to disagree... not that MHO is particularly important, I guess, but just to stress the fact that it is by large a

Re: scalar subscripting

2004-07-15 Thread James Mastros
Larry Wall wrote: I suppose another approach is simply to declare that dot is always a metacharacter in double quotes, and you have to use \. for a literal dot, just as in regexen. That approach would let us interpolate things like .foo without a variable on the left. That could cause a great

Re: Phalanx: What if full coverage isn't possible?

2004-07-15 Thread James Mastros
Rocco Caputo wrote: On Sun, Jul 11, 2004 at 10:09:38PM +0200, James Mastros wrote: All unreachable code is either people misusing the term unreachable, a bug in Devel::Cover, or dead code that should be removed. Here's a puzzle, then. I just ran into a similar problem in POE::Driver::SysRW. For

Re: enhanced open-funktion

2004-07-15 Thread Greg Boug
On Thursday 15 July 2004 19:42, Michele Dondi wrote: open '', $foo; open '', $foo; is much harder to read than open 'r', $foo; open 'w', $foo; Are you sure?!? I would tend to disagree... not that MHO is particularly important, I guess, but just to stress the fact

Re: enhanced open-funktion

2004-07-15 Thread H.Merijn Brand
On Thu 15 Jul 2004 11:42, Michele Dondi [EMAIL PROTECTED] wrote: On Tue, 13 Jul 2004, Juerd wrote: open '', $foo; open '', $foo; is much harder to read than open 'r', $foo; open 'w', $foo; Are you sure?!? I would tend to disagree... So do I. , and are

Re: enhanced open-funktion

2004-07-15 Thread Juerd
H.Merijn Brand skribis 2004-07-15 11:57 (+0200): 1. They do not ambiguate with files named 'r', or 'w' Not a problem, assuming that these are named arguments as in: open :r, $file; open :w, $file; open :rw, $file; open :r :w, $file; # Hmm... 2. They don't have to be

Re: enhanced open-funktion

2004-07-15 Thread Juerd
Greg Boug skribis 2004-07-15 20:01 (+1000): open FH, |/usr/bin/foo; I'd love to be rid of -| and |-. I always have to RTFM to know which one is which. open :r :p, '/usr/bin/foo'; # Or :read :pipe open :rp, '/usr/bin/foo';# IIRC, rules also let you combine

Re: push with lazy lists

2004-07-15 Thread Michele Dondi
On Wed, 14 Jul 2004, Ph. Marek wrote: Please take my words as my understanding, ie. with no connection to mathmatics or number theory or whatever. I'll just say what I believe is practical. OT As a side note, being what one would probably call a mathematically oriented person, it is very

Notes on the piethon converter

2004-07-15 Thread Dan Sugalski
Figured I'd drop this note as I'm poking at this over lunch. There's a number of opcodes that access attributes of the code object. What I'm going to do is take advantage of the fact that we stick the sub/method being called into P0, and hang attributes off of that. I think this'll do what we

Re: Notes on the piethon converter

2004-07-15 Thread H.Merijn Brand
On Thu 15 Jul 2004 18:53, Dan Sugalski [EMAIL PROTECTED] wrote: Figured I'd drop this note as I'm poking at this over lunch. if you try to pun the piethon spelling, py-thong would sound a lot sexier There's a number of opcodes that access attributes of the code object. What I'm going to do

Re: Notes on the piethon converter

2004-07-15 Thread Dan Sugalski
At 6:57 PM +0200 7/15/04, H.Merijn Brand wrote: On Thu 15 Jul 2004 18:53, Dan Sugalski [EMAIL PROTECTED] wrote: Figured I'd drop this note as I'm poking at this over lunch. if you try to pun the piethon spelling, py-thong would sound a lot sexier It'll be Guido and I. Are you *sure* that sexier

Re: push with lazy lists

2004-07-15 Thread Andrew Rodland
On Wednesday 14 July 2004 12:58 pm, Brent 'Dax' Royal-Gordon wrote: Andrew Rodland wrote: So if we have @x = [1, 3, 5, 6 .. 9, 10 .. Inf, 42]; ... 42 is just one number, so questions of indexing it are moot, but its distance from the left is Inf. So, there's no way to access the 42 by

Re: enhanced open-funktion

2004-07-15 Thread Smylers
Greg Boug writes: I have always felt that keeping ['' and ''] the same as shell scripting was a handy thing, ... Using C:w and C:r would at least match what C:w and C:r do in 'Vi' ... Smylers

Re: enhanced open-funktion

2004-07-15 Thread Austin Hastings
--- Smylers [EMAIL PROTECTED] wrote: Using C:w and C:r would at least match what C:w and C:r do in 'Vi' ... That seems intuitive: my $fh = open 'foo.txt', :w; $fh.say Hello, world!; $fh = open 'foo.txt', :e;# Ha, ha, just kidding! $fh.say -EOF If wifey shuns Your fond

Re: enhanced open-funktion

2004-07-15 Thread Brent 'Dax' Royal-Gordon
Greg Boug wrote: I have always felt that keeping it the same as shell scripting was a handy thing, especially when I have been teaching it to others. It also makes the ol' perl5 open FH, |/usr/bin/foo; make a lot more sense. Using something like open p, /usr/bin/foo; just

Re: Notes on the piethon converter

2004-07-15 Thread Leopold Toetsch
Dan Sugalski wrote: Figured I'd drop this note as I'm poking at this over lunch. There's a number of opcodes that access attributes of the code object. What I'm going to do is take advantage of the fact that we stick the sub/method being called into P0, and hang attributes off of that. I think

Re: Notes on the piethon converter

2004-07-15 Thread Dan Sugalski
At 10:19 PM +0200 7/15/04, Leopold Toetsch wrote: Dan Sugalski wrote: Figured I'd drop this note as I'm poking at this over lunch. There's a number of opcodes that access attributes of the code object. What I'm going to do is take advantage of the fact that we stick the sub/method being called

Re: enhanced open-funktion

2004-07-15 Thread Juerd
Brent 'Dax' Royal-Gordon skribis 2004-07-15 13:04 (-0700): $in=open :r |/usr/bin/foo; $out=open :w |/usr/bin/foo; $both=open :rw |/usr/bin/foo; No, thank you. Please let us not repeat the mistake of putting mode and filename/path in one argument. [EMAIL PROTECTED]:~/tmp/example$

Re: enhanced open-funktion

2004-07-15 Thread Smylers
Brent 'Dax' Royal-Gordon writes: My personal preference is for: $in=open :r |/usr/bin/foo; The pipe would be legal on either side of the string. This would still allow the often-useful type a pipe command at a prompt for a file, And it still allows for all those security holes in

Devel::Cover on Windows, ppm anyone ?

2004-07-15 Thread Gabor Szabo
I can see from the testers page that Devel::Cover is supposed to work on Windows. Is there a ppd distribution of it somewhere so I can install it on ActivePerl without a compiler ? Currently if I type ppm install Devel::Cover I get version 0.2 of Devel::Coverage. Not what I wanted. Gabor

[perl #30708] Missing DESTDIR in MAkefile

2004-07-15 Thread via RT
# New Ticket Created by Lambeck # Please include the string: [perl #30708] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30708 While creating an ebuild for Gentoo Linux I noticed that the installpath

Re: [perl #30708] Missing DESTDIR in MAkefile

2004-07-15 Thread Nicholas Clark
On Thu, Jul 15, 2004 at 11:29:59AM -0700, Lambeck wrote: # New Ticket Created by Lambeck # Please include the string: [perl #30708] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30708 While creating an

Re: Devel::Cover on Windows, ppm anyone ?

2004-07-15 Thread Michael Carman
On 7/15/2004 4:28 PM, Gabor Szabo wrote: I can see from the testers page that Devel::Cover is supposed to work on Windows. I can confirm that it does. Is there a ppd distribution of it somewhere so I can install it on ActivePerl without a compiler ? Not AFAIK, certainly not from

Python builtin namespace

2004-07-15 Thread Dan Sugalski
And language builtin namespaces in general. We need a standard, and now's as good a time as any, so... All language-specific builtin functions go into the _core_Language namespace. (So for Python it's _core_Python, Perl 5 is _core_Perl5, and so on) -- Dan

Re: Python builtin namespace

2004-07-15 Thread Steve Peters
On Friday 16 July 2004 02:46 am, Dan Sugalski wrote: And language builtin namespaces in general. We need a standard, and now's as good a time as any, so... All language-specific builtin functions go into the _core_Language namespace. (So for Python it's _core_Python, Perl 5 is _core_Perl5,

Re: Python builtin namespace

2004-07-15 Thread Dan Sugalski
At 10:17 PM + 7/15/04, Steve Peters wrote: On Friday 16 July 2004 02:46 am, Dan Sugalski wrote: And language builtin namespaces in general. We need a standard, and now's as good a time as any, so... All language-specific builtin functions go into the _core_Language namespace. (So for

37.2% of the way there

2004-07-15 Thread Dan Sugalski
Give or take. Lastest version of the translator's up, along with the 2.6 version of Python::Bytecode. It does, in fact, actually translate python bytecode into viable PIR. Which Leo's already does, though somewhat different bits. Translator: http://www.sidhe.org/~dan/piethon/translator.pl

Quick thing for the piethon interested

2004-07-15 Thread Dan Sugalski
Right now in python.ops there's print_newline and print_item which print a newline and an item. We need versions that take a filehandle as the first parameter. (so it'd be print_newline filehandle and print_newline filehandle thing) Takers? C'mon, you know you want to :) --