Optional binding

2005-03-06 Thread Luke Palmer
What is output: sub foo($x, ?$y, [EMAIL PROTECTED]) { say "x = $x; y = $y; z = @z[]"; } my @a = (1,2,3); foo($x, @a); Thanks, Luke

Re: Optional binding

2005-03-06 Thread Brent 'Dax' Royal-Gordon
Luke Palmer <[EMAIL PROTECTED]> wrote: > What is output: > > sub foo($x, ?$y, [EMAIL PROTECTED]) { > say "x = $x; y = $y; z = @z[]"; > } > > my @a = (1,2,3); > foo($x, @a); IANALarry, but I'd think x = ($x's value); y = 1 2 3; z = The $y is implicitly typed Any, and

[perl #34351] [PATCH] garbage characters in a comment

2005-03-06 Thread via RT
# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #34351] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34351 > Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of a header file.

[perl #34352] [PATCH] Tru64: strip the strip

2005-03-06 Thread via RT
# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #34352] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34352 > The ld -s flag caused all symbol information to be stripped from the libraries, wh

Re: [perl #34351] [PATCH] garbage characters in a comment

2005-03-06 Thread Leopold Toetsch
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of > a header file. Non-fatal but probably not intended, either. Patch > attached. $ file noa0.pat.gz noa0.pat.gz: data Please resend, thanks leo

[RELEASE] 0.1.2 - starting

2005-03-06 Thread Leopold Toetsch
Please no more checkins. Thanks, leo

Re: [perl #34351] [PATCH] garbage characters in a comment

2005-03-06 Thread Jarkko Hietaniemi
Leopold Toetsch via RT wrote: > Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > > >>Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of >>a header file. Non-fatal but probably not intended, either. Patch >>attached. > > > $ file noa0.pat.gz > noa0.pat.gz: data > > Please resen

Re: [perl #34352] [PATCH] Tru64: strip the strip

2005-03-06 Thread Leopold Toetsch
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > The ld -s flag caused all symbol information to be stripped from > the libraries, which caused all the Python dynclass tests to fail. > (The -s can be used in Perl 5 since the XS builds up a separate > "symbol table".) Patch attached. Thanks, applie

Re: [perl #34178] [PATCH][MSWin32] Add gpm linkage and minor cleanup

2005-03-06 Thread Ron Blaschke
Ron Blaschke wrote: > Leopold Toetsch wrote: >> Ron Blaschke <[EMAIL PROTECTED]> wrote: >>> - adds correct linkage for gpm >>> Some tests fail, though >>> t\pmc\bigint.t 12 307221 12 57.14% 5-10 13-15 18 20-21 >> Is there any indication what's going wrong? > Not yet, but I'

Current MSWin32 (WinXP, VC++ 7.1) Test Results

2005-03-06 Thread Ron Blaschke
Here are the current test results on my WinXP, VC++ 7.1 box. Failed TestStat Wstat Total Fail Failed List of Failed --- t\dynclass\gdbmhash.t13 332813 13 100.00% 1-13 t\dynclass\pybuiltin.t6

svn.openfoundry.org back

2005-03-06 Thread Autrijus Tang
On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote: > Thanks, applied. > Luke Thanks a lot for applying the patches to svn.perl.org. :-) This is jsut a heads-up to say that svn.openfoundry.org is back, so committers, please commit to openfoundry.org as usual. Cheers, /Autrijus/ pgpYRR

[RELEASE] 0.1.2 - almost done

2005-03-06 Thread Leopold Toetsch
CVS is tagged, tarball is on the way to pause. leo

[RELEASE] Parrot 0.1.2 "Phoenix" Released!

2005-03-06 Thread Leopold Toetsch
On behalf of the Parrot team I'm proud to announce the release of Parrot 0.1.2. What is Parrot? Parrot is a virtual machine aimed at running Perl6 and other dynamic languages. Parrot 0.1.2 contains a lot of new stuff: - New string handling code. Strings now have charset and encoding - Parts of a ge

array interpolation implemented; a question

2005-03-06 Thread Autrijus Tang
On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote: > Garrett Rooney writes: > > Garrett Rooney wrote: > > > > >Assuming the spec is correct, here's a patch to add some more tests to > > >t/op/string_interpolation.t. > > > > Of course, those should have been todo_is tests... Here's the

Re: array interpolation implemented; a question

2005-03-06 Thread Garrett Rooney
Autrijus Tang wrote: On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote: Garrett Rooney writes: Garrett Rooney wrote: Assuming the spec is correct, here's a patch to add some more tests to t/op/string_interpolation.t. Of course, those should have been todo_is tests... Here's the right p

testing non-modules

2005-03-06 Thread Ofer Nave
One issue I've always struggled with is how to properly test code that's not in the form of a module - in other words, scripts. I use the usual hacky, temporary methods to test my code as I write it or when I find a bug (pring statements, commenting out things, etc), and occasionally the perl

Re: testing non-modules

2005-03-06 Thread Andy Lester
> One issue I've always struggled with is how to properly test code that's > not in the form of a module - in other words, scripts. I use the usual Take a look at what I do with prove in Test::Harness. It's not very in-depth but should give you a starting point. -- Andy Lester => [EMAIL PRO

Re: testing Pugs with Perl 6 modules

2005-03-06 Thread Autrijus Tang
On Sat, Mar 05, 2005 at 03:25:55PM -0800, Darren Duncan wrote: > I wish to help out the development of Perl 6, initially running under > Pugs, by supplying test code of sorts, written in Perl 6, that we > would attempt to run under Pugs (and eventually Parrot) to ensure > that it works correctly

Re: testing non-modules

2005-03-06 Thread Michael G Schwern
On Sun, Mar 06, 2005 at 09:35:07AM -0800, Ofer Nave wrote: > One issue I've always struggled with is how to properly test code that's > not in the form of a module - in other words, scripts. I use the usual > hacky, temporary methods to test my code as I write it or when I find a > bug (pring s

[perl #34356] Module to query parrot-config

2005-03-06 Thread via RT
# New Ticket Created by Lambeck # Please include the string: [perl #34356] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34356 > It would be nice to have a module that returns the installed parrot config. Other applicatio

Re: [RELEASE] Parrot 0.1.2 "Phoenix" Released!

2005-03-06 Thread Alberto Manuel Brandao Simoes
Ok, this might be useless, but maybe you like to know: All tests successful, 1 test and 64 subtests skipped. Files=135, Tests=2252, 798 wallclock secs (299.99 cusr + 96.80 csys = 396.79 CPU) On a PIII 1Ghz/256MB RAM, running Slackware Linux Cheers, Alberto Leopold Toetsch wrote: On behalf of the

Re: [perl #34356] Module to query parrot-config

2005-03-06 Thread William Coleda
Already exists. perldoc parrot/library/config.imc Regards. Lambeck (via RT) wrote: # New Ticket Created by Lambeck # Please include the string: [perl #34356] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34356 > It would b

Re: testing non-modules

2005-03-06 Thread Ofer Nave
Michael G Schwern wrote: Now, nobody says this means your program has to be split up into a whole bunch of files and become a full fledged module. You can write something like this. #!/usr/bin/perl -w use Getopt::Long; my %Opts; GetOptions(\%Opts, "test"); s

Re: [perl #34356] Module to query parrot-config

2005-03-06 Thread William Coleda
Whoops, had already cd'd... it's actually in 'runtime/parrot/library/config.imc' Is this what you're looking for? William Coleda wrote: Already exists. perldoc parrot/library/config.imc Regards. Lambeck (via RT) wrote: # New Ticket Created by Lambeck # Please include the string: [perl #34356] #

Re: testing non-modules

2005-03-06 Thread Johan Vromans
[Quoting Michael G Schwern, on March 6 2005, 10:32, in "Re: testing non-modu"] > Or if you want to be super portable you can do this: > > use Test::Output; > local @ARGV = qw(some args); > stdout_is( sub { do "bin/myprogram" }, 'wibble' ); > > Which has the nice side benefit of

Re: testing non-modules

2005-03-06 Thread Pete Krawczyk
Subject: Re: testing non-modules From: Johan Vromans <[EMAIL PROTECTED]> To: perl-qa@perl.org }[Quoting Michael G Schwern, on March 6 2005, 10:32, in "Re: testing non-modu"] }> Or if you want to be super portable you can do this: }> }> use Test::Output; }> local @ARGV = qw(some args); }

Re: CPAN modules coverage (was: Test::Output 0.05)

2005-03-06 Thread Sébastien Aperghis-Tramoni
Michael G Schwern wrote: I think it would be a powerful addition to CPAN. If you go to the distribution page for any module - say, for example, Class::DBI (http://search.cpan.org/~tmtm/Class-DBI/) Trouble right there. Now search.cpan.org has to run untrusted code so a jail would have to be constr

what namespace for (future|new) module ?

2005-03-06 Thread Cédric Bouvier
Hello there. I once had to organize the stress testing of a web based application. The client wanted to know whether the server would handle a given number of concurrent sessions and how long would the users have to wait in front of their stalled browser if such a situation ever happened. The app

Re: [perl #34356] Module to query parrot-config

2005-03-06 Thread Adrian Lambeck
This might be it - how do I access the data ? Am Sonntag, 6. MÃrz 2005 20:13 schrieb Will Coleda via RT: > Whoops, had already cd'd... > > it's actually in 'runtime/parrot/library/config.imc' > > Is this what you're looking for? > > William Coleda wrote: > > Already exists. > > > > perldoc parrot

Method call parsing

2005-03-06 Thread Luke Palmer
In Parser.hs:589, we have the code: parseParamList parse =parseParenParamList parse <|> parseNoParenParamList parse parseParenParamList parse = do [inv, norm] <- maybeParens $ parseNoPare

Re: [perl #34356] Module to query parrot-config

2005-03-06 Thread William Coleda
Here's the sample from the perldoc: .sub _some # store the config data into $P0 $P0 = _config() # Retrieve and print a key $P1 = $P0["cc"] print "Your C compiler is " print $P1 print "\n" .end .include "library/config.imc" Which, when run on m

Re: testing Pugs with Perl 6 modules

2005-03-06 Thread Darren Duncan
Okay, I have now seen the responses to my posting from Stevan Little and Autrijus; thanks to both of you for those. I also read parts of the March 6 IRC log where concerns I raised in my 4th question was discussed. I'll start showing up on IRC soon, though I have to find a good Mac OS X clien

Re: testing Pugs with Perl 6 modules

2005-03-06 Thread Yuval Kogman
On Sun, Mar 06, 2005 at 16:40:46 -0800, Darren Duncan wrote: > I'll start showing up on IRC soon, though I have to find a good Mac > OS X client for IRC first (I'm still used to email as a primary > communication medium). I'm very happy with colloquy (http://colloquy.info). You can probably get

Re: Optional binding

2005-03-06 Thread Yuval Kogman
On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote: > What is output: > > sub foo($x, ?$y, [EMAIL PROTECTED]) { > say "x = $x; y = $y; z = @z[]"; > } > > my @a = (1,2,3); > foo($x, @a); And is $a ==> foo $x; The same? -- () Yuval Kogman <[EMAIL PROTEC

Devel::Cover-age of qx() jobs

2005-03-06 Thread Jim Cromie
Ive written some tests that verify writing to STDOUT, etc, which were easy to do as `$X ... ` jobs. but these dont get covered by default, so my coverage results are not what they should be. I tried to do the following, but it didnt work out. my @args = ($^X, (defined %Devel::Cover::)

Test::More - question about eq_* functions

2005-03-06 Thread Ofer Nave
I've been reading up on perl test tools all day, and I have a question about Test::More. Doesn't is_deeply do everything eq_array and eq_hash does and more? It looks like is_deeply has the same exact interface and purpose, except that it accepts both arrayrefs and hashrefs. So why would you n

Re: CPAN modules coverage (was: Test::Output 0.05)

2005-03-06 Thread Michael G Schwern
On Sun, Mar 06, 2005 at 09:54:44PM +0100, S?bastien Aperghis-Tramoni wrote: > Instead of running the code on one server, where it's a problem, why > not running on machines where all prereq modules are already installed, > i.e. on machines where one *wants* to install the module ? Let's add an >

Re: what namespace for (future|new) module ?

2005-03-06 Thread Michael G Schwern
On Sun, Mar 06, 2005 at 10:01:19PM +0100, C?dric Bouvier wrote: > I have something almost working right now. I'd like to upload it to CPAN > (after I have at least improved the documentation kindly written by > Module::Starter, that is) but I'd like your enlightened opinion on what > name it should

Re: testing non-modules

2005-03-06 Thread Yitzchak Scott-Thoennes
On Sun, Mar 06, 2005 at 10:32:26AM -0800, Michael G Schwern wrote: > #!/usr/bin/perl -w > > use Getopt::Long; > > my %Opts; > GetOptions(\%Opts, "test"); > > sub main { > return if $Opts{test}; > > ...the program using the

Re: testing non-modules

2005-03-06 Thread Ofer Nave
Yitzchak Scott-Thoennes wrote: I'd make that just: sub main { ...the program using the functions below... } main() unless caller; sub some_function { ... } sub some_other_function { ... } Nice trick. I just tested it. [EMAIL PROTECTED] ~/test] cat foo.pl #!/usr/bin/perl -w use strict; m

Re: Optional binding

2005-03-06 Thread Larry Wall
On Sun, Mar 06, 2005 at 02:13:09AM -0700, Luke Palmer wrote: : What is output: : : sub foo($x, ?$y, [EMAIL PROTECTED]) { : say "x = $x; y = $y; z = @z[]"; : } : : my @a = (1,2,3); : foo($x, @a); I think it should say something like: Use of undefined value at foo line