Re: supporting older perls

2007-03-05 Thread Adam Kennedy
As of 5.10, use constant will use less memory than Greg's version. I'm loathe to make the same changes for 5.8.9, as the implementation confuses some modules that inspect the symbol table. The necessary infrastructure will be in 5.8.9 though. You can add me to the don't want to see it happen

Re: supporting older perls

2007-03-05 Thread Dr.Ruud
Keith Ivey schreef: Dr.Ruud: Greg Matheson: A. Pagaltzis: Write the same thing without syntactic sugar from constant.pm. sub C1 () { 'C1' } Mmh. I see constant.pm does very little. Well, it nicely sets things up for the compiler to optimize. perl -MO=Deparse -e 'use constant

Re: supporting older perls

2007-03-05 Thread Keith Ivey
Dr.Ruud wrote: Keith Ivey schreef: Dr.Ruud: Greg Matheson: A. Pagaltzis: Write the same thing without syntactic sugar from constant.pm. sub C1 () { 'C1' } Mmh. I see constant.pm does very little. Well, it nicely sets things up for the compiler to optimize. perl -MO=Deparse -e

Re: supporting older perls

2007-03-05 Thread Greg Matheson
On Tue, 06 Mar 2007, Adam Kennedy wrote: I've now added checking of use constant { ... } to Perl::MinimumVersion as 5.8.0. Let me know if this works ok for you. 1.14 reports v5.8.0 if use constant { ... } is in and v5.6.0 if it is out. So it works. Adam Kennedy wrote: Eric Wilhelm

Re: supporting older perls

2007-03-04 Thread Dr.Ruud
Greg Matheson schreef: A. Pagaltzis: Write the same thing without syntactic sugar from constant.pm. sub C1 () { 'C1' } Mmh. I see constant.pm does very little. Well, it nicely sets things up for the compiler to optimize. perl -MO=Deparse -e 'use constant PI = 3.1415; print PI'

Re: supporting older perls

2007-03-04 Thread Keith Ivey
Dr.Ruud wrote: Greg Matheson schreef: A. Pagaltzis: Write the same thing without syntactic sugar from constant.pm. sub C1 () { 'C1' } Mmh. I see constant.pm does very little. Well, it nicely sets things up for the compiler to optimize. perl -MO=Deparse -e 'use constant PI =

Re: supporting older perls

2007-02-25 Thread Eric Wilhelm
# from Greg Matheson # on Saturday 24 February 2007 09:02 pm: I got one failure with 5.6.2 and passes with 5.8. The problem appears to be the constant pragma, which doesn't seem to have an independent contemporary existence on CPAN. It isn't dual-lifed, but at least the docs for the old version

Re: supporting older perls

2007-02-25 Thread imacat
On Sun, 25 Feb 2007 13:02:11 +0800 Greg Matheson [EMAIL PROTECTED] wrote: Here's a message I sent to cpan-testers, but with the volume of reports to that list, I doubt anyone on it has time left from deleting the messages to respond. Hi. I'm a reader of cpan-testers. I'm using mail

Re: supporting older perls

2007-02-25 Thread Sébastien Aperghis-Tramoni
Greg Matheson wrote: I got one failure with 5.6.2 and passes with 5.8. The problem appears to be the constant pragma, which doesn't seem to have an independent contemporary existence on CPAN. [...] Because it is not failing on 5.8, I suspect that in 5.6.2 the constants pragma didn't have:

Re: supporting older perls

2007-02-25 Thread Andy Armstrong
On 25 Feb 2007, at 05:02, Greg Matheson wrote: How do you find out what can be done in older perls? Is it not possible to build 5.6.2? Archaeology: this seems to be the birth of use constant: http://backpan.hexten.net/authors/id/P/PH/PHOENIX/constant-0.01.readme -- Andy Armstrong,

Re: supporting older perls

2007-02-25 Thread Jerry D. Hedden
Greg Matheson wrote: How do you find out what can be done in older perls? Andy Armstrong wrote: Is it not possible to build 5.6.2? Archaeology: this seems to be the birth of use constant: http://backpan.hexten.net/authors/id/P/PH/PHOENIX/constant-0.01.readme 5.6.2 is available here:

Re: supporting older perls

2007-02-25 Thread A. Pagaltzis
* Greg Matheson [EMAIL PROTECTED] [2007-02-25 06:10]: Line 16 of my module is: use constant { C1= 'C1', C2= 'C2', and it continues on this way to line 40. PREV = PREV, COLORS= COLORS, }; What do I do

Re: supporting older perls

2007-02-24 Thread Greg Matheson
Here's a message I sent to cpan-testers, but with the volume of reports to that list, I doubt anyone on it has time left from deleting the messages to respond. I got one failure with 5.6.2 and passes with 5.8. The problem appears to be the constant pragma, which doesn't seem to have an