Re: scalar subscripting

2004-07-14 Thread Jonadab the Unsightly One
Larry Wall [EMAIL PROTECTED] writes: No, just currently wrong. :-) I changed my mind about it in A12, partly on the assumption that $object.attr would actually be more common than $file.ext, Speaking of which, what's the cleanest way to interpolate filenames with a fixed extension now?

Re: push with lazy lists

2004-07-14 Thread David Storrs
On Wed, Jul 14, 2004 at 07:40:33AM +0200, Ph. Marek wrote: To repeat Dave and myself - if @x = 1 .. Inf; then rand(@x) should be Inf, and so print $x[rand(@x)]; should give Inf, as the infinite element of @x is Inf. Does it even make sense to take the Infiniteth element

Re: push with lazy lists

2004-07-14 Thread Ph. Marek
On Wednesday 14 July 2004 08:39, David Storrs wrote: To repeat Dave and myself - if @x = 1 .. Inf; then rand(@x) should be Inf, and so print $x[rand(@x)]; should give Inf, as the infinite element of @x is Inf. Please take my words as my understanding, ie. with no

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

2004-07-14 Thread Rocco Caputo
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 portability I

Re: Perl script to .so file

2004-07-14 Thread Luke Palmer
RaghavendraK 70574 writes: Hi, Am a hardcore C++ guy and don;t know much abt the Perl. But one of my friend has proved that the fastest way to RAD is Perl. I need to know if we can convert a Perl script to a dynamic link library under unix only. I don't know what RAD is, but I know you're

Re: = brother

2004-07-14 Thread Jonadab the Unsightly One
Luke Palmer [EMAIL PROTECTED] writes: strange, but :shift«value» looks a little more noisy to me than shift = 'value', For some reason, it looks that way to me, too. Me three. Perhaps: :shift« value » I *think* that's better... To me, that's even worse. My brain sees spaces

pie-thon converter

2004-07-14 Thread Dan Sugalski
I'm putting the piethon conversion program up for folks to look at. Far from done, but tonight (hopefully) will be productive. http://www.sidhe.org/~dan/piethon/translator.pl -- Dan --it's like this--- Dan

semi-stack code

2004-07-14 Thread Dan Sugalski
Okay, here's a really, really evil idea. (And yes, bluntly, it's triggered by the pie-thon bytecode translator's needs) I need a stack, and one that's faster than our current stack which, while snappy for what it does, is still burdened by generality. I also need a stack that's generally not

Re: push with lazy lists

2004-07-14 Thread Andrew Rodland
On Wednesday 14 July 2004 04:55 am, Ph. Marek wrote: On Wednesday 14 July 2004 08:39, David Storrs wrote: To repeat Dave and myself - if @x = 1 .. Inf; then rand(@x) should be Inf, and so print $x[rand(@x)]; should give Inf, as the infinite element of @x is Inf.

Re: scalar subscripting

2004-07-14 Thread Larry Wall
On Sun, Jul 11, 2004 at 11:06:30PM -0400, Jonadab the Unsightly One wrote: : Larry Wall [EMAIL PROTECTED] writes: : : No, just currently wrong. :-) I changed my mind about it in A12, : partly on the assumption that $object.attr would actually be more : common than $file.ext, : : Speaking of

Re: scalar subscripting

2004-07-14 Thread Larry Wall
On Wed, Jul 14, 2004 at 10:23:18AM -0700, Larry Wall wrote: : Another alternative is $( $file ).ext. I'd tend to use that before : ${file}.ext these days. Perhaps that's irrational--but it was hard : to get the special-case ${name} form to work right in the Perl 5 : lexer, and that bugs me. If

Re: semi-stack code

2004-07-14 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: Okay, here's a really, really evil idea. (And yes, bluntly, it's triggered by the pie-thon bytecode translator's needs) I need a stack, Do you? I've converted all stack stuff at compile time, till now. I don't see the point, why this might not work for all

Re: enhanced open-funktion

2004-07-14 Thread Larry Wall
On Tue, Jul 13, 2004 at 03:44:11PM -0600, John Williams wrote: : On Tue, 13 Jul 2004, Larry Wall wrote: : On Tue, Jul 13, 2004 at 07:24:55AM -0600, Luke Palmer wrote: : : But in Perl 6, you don't have to specify things like that through the : : mode string: you can specify them through named

Re: semi-stack code

2004-07-14 Thread Dan Sugalski
At 7:43 PM +0200 7/14/04, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: Okay, here's a really, really evil idea. (And yes, bluntly, it's triggered by the pie-thon bytecode translator's needs) I need a stack, Do you? I've converted all stack stuff at compile time, till now. I

Re: semi-stack code

2004-07-14 Thread Leopold Toetsch
Dan Sugalski wrote: At 7:43 PM +0200 7/14/04, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: Okay, here's a really, really evil idea. (And yes, bluntly, it's triggered by the pie-thon bytecode translator's needs) I need a stack, Do you? I've converted all stack stuff at compile

Re: scalar subscripting

2004-07-14 Thread Dan Hursh
Larry Wall wrote: On Wed, Jul 14, 2004 at 10:23:18AM -0700, Larry Wall wrote: : Another alternative is $( $file ).ext. I'd tend to use that before : ${file}.ext these days. Perhaps that's irrational--but it was hard : to get the special-case ${name} form to work right in the Perl 5 : lexer, and

Converter mark two

2004-07-14 Thread Dan Sugalski
Okay, so it's not done, but I put a new version up to be looked at. I'm taking Leo at his word on how the stack behaves, as I've not had time to look that closely at it to see myself. (Though by inspection it does still look like stack usage is pretty low, and is either 0 or 1 at labels (and