Re: across language question

2005-04-08 Thread Leopold Toetsch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > if compile test_pbc.php to test_pbc.pbc then how use this pbc for perl. Not yet, sorry. leo

Re: cvs commit: parrot/t/dynclass foo.t

2005-04-08 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > +SKIP: { skip("No BigInt Lib configured", 1) if !$PConfig{gmp}; Good. Still better - as we eventually have more then one bigint lib configurable - we should define a general 'HAS_BIGINT' for any of these possible libs and test that symbol. leo

Re: Kwalitee and has_test_*

2005-04-08 Thread Tony Bowden
On Thu, Apr 07, 2005 at 02:34:21PM -0400, David Golden wrote: > * Shipping tests is a hint that a developer at least thought about > testing. Counter: It's no guarantee of the quality of testing and can > be easily spoofed to raise quality. This is certainly not why I ship tests, and I've never

RE: How to force tests to issue "NA" reports?

2005-04-08 Thread Barbie
On 07 April 2005 23:02 Ken Williams wrote: > On Apr 6, 2005, at 7:13 AM, Robert Rothenberg wrote: > >> Is there a way tests to determine that a module cannot be installed >> on a platform so that CPANPLUS or CPAN::YACSmoke can issue an "NA" >> (Not Applicable) report? >> >> CPANPLUS relies on m

[Pugs] Simple list of lists: Pugs confounded me

2005-04-08 Thread Andrew Savige
I'd like to convert the following p5 code to p6: my @z = ( [ 'a1', 'a2' ], [ 'b1', 'b2', 'b3' ] ); for my $r (@z) { print "@$r\n" } I thought this might do the trick [1]: my @z = ( [ 'a1', 'a2' ], [ 'b1', 'b2', 'b3' ] ); for @z -> $r { say $r } However, the p5 version prints: a

[CVS ci] MMD 21 - bigger restructuring

2005-04-08 Thread Leopold Toetsch
* the separate native type MMD enums are gone: MMD_ADD_INT => MMD_ADD * the native types INTVAL..PMC occupy types 0..3 * this almost halfs the MMD_table size * enum_type_PMC serves as Any * the special PMCs delegate, Ref and alike don't register MMD functions any more * get_mmd_dispatch_type

RE: Kwalitee and has_test_*

2005-04-08 Thread Barbie
On 07 April 2005 19:34 David Golden wrote: > Let's step back a moment. > > Does anyone object that CPANTS Kwalitee looks for tests? I think you're missing the point of Tony's argument. I don't think anyone would dispute that shipping tests with a distribution is a Good Thing (tm). What is at i

Re: Dynamic Perl, Part 1 [IMCC]

2005-04-08 Thread Tim Bunce
On Thu, Apr 07, 2005 at 11:35:46PM -0400, William Coleda wrote: > There are two open tickets about removing the core's dependance on Perl* > PMCs, and instead, making them dynamically loadable and using the language > agnostic PMCs for internal use. > > Talking about this with Leo on IRC, he exp

Re: [Pugs] Simple list of lists: Pugs confounded me

2005-04-08 Thread Stevan Little
Andrew, Multi-dimensional structures are currently not supported in Pugs. But never fear, Autrijus is working on them right now actually. He is in the process of refactoring some of the Array and Hash types (in Haskell) to support this. What you are seeing in this example: my @z = ( [ 'a1',

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread Ovid
--- Michael G Schwern <[EMAIL PROTECTED]> wrote: > This > > is because there is no END block to grab on to in JavaScript. > > Could object destruction be used somehow? It's my understanding that the Ecmascript standard leaves garbage collection up to the implementation. I suspect this means

Re: array of arrays, hash of hashes, elems, last

2005-04-08 Thread Nathan Gray
On Wed, Apr 06, 2005 at 09:52:40PM -0400, Lev Selector wrote: > But I can't make Arrays of Arrays or Hash of Hashes work. > @ar.elems & @ar.last don't work either. Autrijus' journal entry (http://use.perl.org/~autrijus/journal/) from Wednesday states one of the goals for this week is: * Impleme

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Chris Dolan
On Apr 6, 2005, at 7:13 AM, Robert Rothenberg wrote: Is there a way tests to determine that a module cannot be installed on a platform so that CPANPLUS or CPAN::YACSmoke can issue an "NA" (Not Applicable) report? CPANPLUS relies on module names (e.g. "Solaris::" or "Win32::") but that is not al

[perl #34704] [PATCH] get SDL running on win32

2005-04-08 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34704] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34704 > the attached patch gets the SDL library and examples running on win32. please test on exi

Blocks, continuations and eval()

2005-04-08 Thread wolverian
Hi, (I'm sorry if this topic has already been discussed.) one day a friend asked if Perl 5 had a REPL facility. (Read-Eval-Print-Loop). I told him it has perl -de0, which is different in that it does not preserve the lexical scope across evaluated lines. This is because eval STRING creates its ow

Re: [PATCH] apo/A05.pod: spelling error

2005-04-08 Thread Patrick R. Michaud
On Thu, Apr 07, 2005 at 11:13:42PM +0200, Steven Schubiger wrote: > Attached is a patch that fixes a minor spelling error > in apocalypse 5. Applied, thanks! Pm

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread David Cantrell
Chris Dolan wrote: On Apr 6, 2005, at 7:13 AM, Robert Rothenberg wrote: Is there a way tests to determine that a module cannot be installed on a platform so that CPANPLUS or CPAN::YACSmoke can issue an "NA" (Not Applicable) report? CPANPLUS relies on module names (e.g. "Solaris::" or "Win32::") b

[PATCH] apo/A05.pod: spelling error

2005-04-08 Thread Steven Schubiger
Attached is a patch that fixes a minor spelling error in apocalypse 5. Steven --- A05.pod.origThu Apr 7 22:59:16 2005 +++ A05.pod Thu Apr 7 22:59:56 2005 @@ -2179,7 +2179,7 @@ tree of objects. Matching against such boundaries or metadata would not be possible -unless eth

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread Adrian Howard
On 7 Apr 2005, at 19:23, David Wheeler wrote: Greetings fellow Perlers, I'm pleased to announce the first alpha release of my port of TestSimple/More/Builder to JavaScript. You can download it from: http://www.justatheory.com/downloads/TestBuilder-0.01.tar.gz [snip] You rock! Excellent stuff. O

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread Adrian Howard
On 7 Apr 2005, at 20:27, David Wheeler wrote: [snip] Besides, I'm sure that Adrian will soon take my code to port Test::Class to JavaScript, and then we can have both approaches! ;-) I did once hack JSUnit to output TAP - so you never know :-) Adrian

Re: Blocks, continuations and eval()

2005-04-08 Thread David Storrs
On Fri, Apr 08, 2005 at 05:03:11PM +0300, wolverian wrote: Hi wolverian, > one day a friend asked if Perl 5 had a REPL facility. > (Read-Eval-Print-Loop). I told him it has perl -de0, which is different > [...] > In Perl 6, the generic solution to fix this (if one wants to fix it) > seems, to me,

Re: Dynamic Perl, Part 1 [IMCC]

2005-04-08 Thread Leopold Toetsch
William Coleda <[EMAIL PROTECTED]> wrote: > PerlArray is going to be the hardest to pull out, as there is no other > Array-style pmc that does everything it does. (or, at least, I can't > find one. =-) The replacement ought to be ResizablePMCArray. Missing methods like C need implementators. The

Re: Blocks, continuations and eval()

2005-04-08 Thread MrJoltCola
At 10:03 AM 4/8/2005, wolverian wrote: To get to the real topic: In Perl 6, the generic solution to fix this (if one wants to fix it) seems, to me, to be to add a .eval method to objects that represent scopes. I'm not sure if scopes are first class values in Perl 6. Are they? How do you get the cur

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread Geoffrey Young
David Wheeler wrote: > On Apr 7, 2005, at 5:55 PM, Michael G Schwern wrote: > >> If you have isDeeply() there's little point to the eq* salad. > > > Hrm, fair enough. I'll comment them out, then... well, a few thoughts here... as someone familiar with T::M and not javascript, were I to try t

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Sébastien Aperghis-Tramoni
David Cantrell wrote: > Let's take my module File::Find::Rule::Permissions as an example. I > know it doesn't work on Windows, but not having access to a Windows > machine, I have *no idea* what $^O should be on that platform, > especially for any odd Windows environments like Cygwin or WinCE. I

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread David Wheeler
On Apr 7, 2005, at 2:41 PM, Ovid wrote: It's my understanding that the Ecmascript standard leaves garbage collection up to the implementation. I suspect this means we can't be sure exactly when an object is destroyed, though whether or not this has any bearing on David's problem is not clear to me

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread David Wheeler
On Apr 8, 2005, at 8:23 AM, Adrian Howard wrote: I did once hack JSUnit to output TAP - so you never know :-) You are a very sick man. :-) D

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread David Wheeler
On Apr 8, 2005, at 9:36 AM, Geoffrey Young wrote: as someone familiar with T::M and not javascript, were I to try to use this it's an additional barrier to call it "Test::More in JavaScript" but not provide _the exact same functions_ as Test::More. now before everyone starts slamming this let me

Re: Kwalitee and has_test_*

2005-04-08 Thread Michael Graham
Another good reason to ship all of your development tests with code is that it makes it easer for users to submit patches with tests. Or to fork your code and retain all your development tools and methods. Since most Perl modules go up on CPAN and nowhere else, I think that the CPAN distribution

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread Michael G Schwern
On Fri, Apr 08, 2005 at 12:36:16PM -0400, Geoffrey Young wrote: > as someone familiar with T::M and not javascript, were I to try to use this > it's an additional barrier to call it "Test::More in JavaScript" but not > provide _the exact same functions_ as Test::More. now before everyone > starts

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Michael G Schwern
On Thu, Apr 07, 2005 at 07:49:40AM -0500, Chris Dolan wrote: > >Is there a way tests to determine that a module cannot be installed on > >a platform so that CPANPLUS or CPAN::YACSmoke can issue an "NA" (Not > >Applicable) report? The only way I know of to do this currently is for Makefile.PL to

Re: Blocks, continuations and eval()

2005-04-08 Thread wolverian
On Fri, Apr 08, 2005 at 08:35:30AM -0700, David Storrs wrote: > I'm unclear on what you're looking for. Are you trying to get a way > to do interactive coding in P6? Or the ability to "freeze" a scope > and execute it later? Or something else? Neither in itself. I'm looking for a way to refer t

Re: Blocks, continuations and eval()

2005-04-08 Thread wolverian
On Fri, Apr 08, 2005 at 12:18:45PM -0400, MrJoltCola wrote: > I cannot say how much Perl6 will expose to the high level language. That is what I'm wondering about. I'm sorry I was so unclear. > Can you tell me what your idea of a "scope" is? I'm thinking a > continuation, and if that is what you

Some ideas (was Re: How to force tests to issue "NA" reports?)

2005-04-08 Thread Robert Rothenberg
I'm all for something like this, though I prefer "requires_libraries" instead. (Listing libraries distinct from applications is a grey area, so best to put them under one term.) Come to think of it, why not "recommends_libraries" too? What is needed is some standard set of library and applicatio

Re: TestSimple/More/Builder in JavaScript

2005-04-08 Thread David Wheeler
On Apr 8, 2005, at 10:28 AM, Michael G Schwern wrote: Nahh, I'll start slamming now. :) The eq_* salad was a mistake and I've been planning on deprecating them for a while now. No sense in parroting mistakes forward. By the way, I've just removed those from my svn repository, and changed eqSet

[perl #34891] [PATCH] remove 'unreferenced local variable' warnings from src/*.c files

2005-04-08 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34891] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34891 > This transaction appears to have no contenti'm in the process of removing warnings from pa

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-08 Thread chromatic
On Thu, 2005-04-07 at 11:06 -0700, jerry gay wrote: > the attached patch gets the SDL library and examples running on win32. > please test on existing platforms by applying and running > .\parrot examples\sdl\blue_rect.imc I don't see a patch in this mail or in RT. Can you re-send? -- c

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-08 Thread jerry gay
urk. attached. On 8 Apr 2005 18:41:42 -, chromatic via RT <[EMAIL PROTECTED]> wrote: On Thu, 2005-04-07 at 11:06 -0700, jerry gay wrote:> the attached patch gets the SDL library and examples running on win32.> please test on existing platforms by applying and running>  .\parrot examples\sdl\blu

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Ken Williams
On Apr 8, 2005, at 12:32 PM, Michael G Schwern wrote: die "NA: $reason"; Since, at the moment, we're having trouble putting together a system to cover the possible reasons for an NA report let the module author figure it out. Its simple and minimal. I like it. -Ken

[perl #34893] [PATCH] remove warnings from dynclasses/tcl*.pmc

2005-04-08 Thread Will Coleda via RT
This patch looks fine, if someone wants to apply it before the SVN migration.

Re: [Pugs] Simple list of lists: Pugs confounded me

2005-04-08 Thread Autrijus Tang
On Fri, Apr 08, 2005 at 09:22:27AM -0400, Stevan Little wrote: > Multi-dimensional structures are currently not supported in Pugs. But > never fear, Autrijus is working on them right now actually. He is in > the process of refactoring some of the Array and Hash types (in > Haskell) to support this.

Probing requirements (was: Re: Some ideas)

2005-04-08 Thread Randy W. Sims
Robert Rothenberg wrote: I'm all for something like this, though I prefer "requires_libraries" instead. (Listing libraries distinct from applications is a grey area, so best to put them under one term.) Come to think of it, why not "recommends_libraries" too? What is needed is some standard set

[perl #34894] [PATCH] remove warnings from classes/*.pmc

2005-04-08 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34894] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34894 > This transaction appears to have no contentthis patch removes uninitialized variable warni

[perl #34893] [PATCH] remove warnings from dynclasses/tcl*.pmc

2005-04-08 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34893] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34893 > This transaction appears to have no contentthis patch removes warnings of unreferenced lab

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Robert Rothenberg
Same here. On 08/04/2005 20:02 Ken Williams wrote: On Apr 8, 2005, at 12:32 PM, Michael G Schwern wrote: die "NA: $reason"; Since, at the moment, we're having trouble putting together a system to cover the possible reasons for an NA report let the module author figure it out. Its simple and m

Re: Probing requirements

2005-04-08 Thread Randy W. Sims
_brian_d_foy wrote: In article <[EMAIL PROTECTED]>, Randy W. Sims <[EMAIL PROTECTED]> wrote: Probe::OS - Gather info on the operating system Probe::Libs Probe::Progs Probe::FileSys - maybe incorporate ideas Schwern posted on p5p recently, Perhaps we can put this under a namespace like Config::