improved heredocs (r9734)

2005-11-03 Thread Leopold Toetsch
Heredocs have proven to create much more readable syntax especially inside compilers. I've hacked them a bit with the following effects: 1) single-quote-delimitted heredocs are valid now These wprk like single-quoted strings, that is: no backslash substitutions. 2) heredocs are now valid

Re: syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-03 Thread Michele Dondi
On Wed, 2 Nov 2005, Ruud H.G. van Tol wrote: http://www.nntp.perl.org/group/perl.perl6.language/17556 I understand that Perl6 allows blocks with changed/enhanced syntax, so it is or will become possible (to add it) as if it was in the core language. Do I understand that right? Something as

Re: Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-11-03 Thread David Cantrell
David Landgren wrote: I don't know how to distinguish between someone who likes to jumps through hoops and someone who cares about their modules. I do, but it involves reading what they've written instead of (for example) just rgrepping for the current POD testing flavour of the month.

Re: $_ defaulting for mutating ops

2005-11-03 Thread Michele Dondi
On Thu, 3 Nov 2005, Sam Vilain wrote: That being said, there are probably other more pressing reasons that ops should not accept $_ as default; I would guess, for a start, it makes determining semantics very difficult. Does ++; mean postfix:++ or prefix:++ ? If we had it, I think we would

Re: [perl #37372] [TODO] unicode charset classification

2005-11-03 Thread Leopold Toetsch
Leopold Toetsch (via RT) wrote: charset/unicode.c needs implementation of is_ccass / find_cclass, / find_not_cclass. Done - r9737, r9738. More tests are very welcome (t/op/string_cclass.t). 10) receive grand Parrot unicode award All mine. leo

Re: CPAN Testers results

2005-11-03 Thread Barbie
Quoting Ovid [EMAIL PROTECTED]: I've noticed that http://search.cpan.org/~ovid/HOP-Parser-0.01/, amongst other modules, has no CPAN test results appearing even though CPAN tester reports are coming in. I've seen this for other modules, too. Is there an announced reason for this I missed

Re: Segfault with structs and CSTR

2005-11-03 Thread Roger Browne
Joshua Isom wrote: I'm trying to use libc to be able to do a directory listing, and and if I used the DATATYPE_CSTR I get a segfault, and if I use DATATYPE_STRING, I get a returning unhandled string type in struct I tried this a while back, and got it working (as a kind of proof-of-concept)

Re: syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-03 Thread Rob Kinyon
On 11/3/05, Michele Dondi [EMAIL PROTECTED] wrote: On Wed, 2 Nov 2005, Ruud H.G. van Tol wrote: http://www.nntp.perl.org/group/perl.perl6.language/17556 I understand that Perl6 allows blocks with changed/enhanced syntax, so it is or will become possible (to add it) as if it was in the

Re: Segfault with structs and CSTR

2005-11-03 Thread Leopold Toetsch
Joshua Isom wrote: I'm trying to use libc to be able to do a directory listing, and and if I used the DATATYPE_CSTR I get a segfault, and if I use DATATYPE_STRING, It's neither nor. A DATATYPE_CSTR would be a pointer to a cstring. But when you look at the definition of struct dirent, you see

Re: Segfault with structs and CSTR

2005-11-03 Thread Leopold Toetsch
Joshua Isom wrote: I'm trying to use libc to be able to do a directory listing, ... Another tricky part is detecting the NULL pointer after the end, achievable with the get_addr opcode. Here is a directory lister: leo .sub _main @MAIN .local pmc libc .local pmc opendir

[perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #37600] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37600 I dug through partcl to see where I could take advantage of the new anywhere

[perl #37386] [PATCH] Swapped enum_cclass_any and enum_cclass_none in cclass.h

2005-11-03 Thread Roger Browne via RT
This patch has not been applied, but the same bug has been fixed by Leo's work in revision 9737. Could somebody please mark this ticket as Resolved? Thanks. Regards, Roger Browne -- Roger Browne - [EMAIL PROTECTED] - http://xamber.org/

Re: [perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread Leopold Toetsch
Will Coleda (via RT) wrote: error:imcc:The opcode 'print' (print0) was not found. Check the type and number of the arguments in macro '.say' line 2 included from 'foo.pir' line 7 This is a different error then the subject says - you are using a reserved word (opcode) as macro

Re: Role Method Conflicts and Disambiguation

2005-11-03 Thread Stevan Little
On Nov 2, 2005, at 9:02 PM, Jonathan Lang wrote: Let's say you have this: role A {method foo() { code1; } } role B {method foo() { code2; } } role C does A does B { method foo() { A::foo(); } method bar() { B::foo(); } } Should the following be valid? role D does C { method

Re: [perl #37600] [TODO] Heredocs as macro args

2005-11-03 Thread Will Coleda
This is what I get for changing my sample at the last minute. =-) On Nov 3, 2005, at 10:26 AM, Leopold Toetsch wrote: Will Coleda (via RT) wrote: error:imcc:The opcode 'print' (print0) was not found. Check the type and number of the arguments in macro '.say' line 2 included from

Re: Role Method Conflicts and Disambiguation

2005-11-03 Thread Rob Kinyon
On Nov 2, 2005, at 9:02 PM, Jonathan Lang wrote: Let's say you have this: role A {method foo() { code1; } } role B {method foo() { code2; } } role C does A does B { method foo() { A::foo(); } method bar() { B::foo(); } } Should the following be valid?

Re: Why submethods

2005-11-03 Thread TSa
HaloO, Luke Palmer wrote: On 10/29/05, Damian Conway [EMAIL PROTECTED] wrote: So we need a mechanism that is externally (i.e. from a class interface point-of-view) a subroutine, but internally has the features of a method (i.e. has an invocant). Since it's externally sub-like but internally

Re: Determining number of return values expected

2005-11-03 Thread Roger Browne
On Sun, 2005-10-30 at 20:54 +, Jonathan Worthington wrote: $P0 = result_info $I0 = elements $P0 Will leave $I0 containing the number of return values. Thanks Jonathan, it seem to work perfectly. I'm very grateful for this. Regards, Roger Browne

Test::More behavior issue with Devel::Cover + patch

2005-11-03 Thread Pete Krawczyk
First of all, I have Test::More 0.62 installed and Devel::Cover 0.55 under Perl 5.8.2. I also have a simple test script: $ cat test.pl #!/usr/bin/perl use warnings; use strict; use Test::More tests = 1; $a = {}; isa_ok($a,'HASH'); ...which works well under prove: $ prove test.pl testok

Re: automated web testing with selenium

2005-11-03 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Wednesday 02 November 2005 22:56, Luke Closs wrote: Hey there. I was just interviewed by qapodcast.com about Selenium, a cool new automated web testing tool. It's really great, and super easy to use. Also, yesterday Test::WWW::Selenium was

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-03 Thread Ricardo SIGNES
* Pete Krawczyk [EMAIL PROTECTED] [2005-11-03T12:46:48] The solution I see is to make sure the object can() isa(), thus avoiding the die in the process: It was using -isa instead of UNIVERSAL::isa because isa might be overridden. Surely the same could apply to -can. -- rjbs

Re: Role Method Conflicts and Disambiguation

2005-11-03 Thread TSa
HaloO, Rob Kinyon wrote: On Nov 2, 2005, at 9:02 PM, Jonathan Lang wrote: Let's say you have this: role A {method foo() { code1; } } role B {method foo() { code2; } } I think, A and B might just be aliases to the *identical* structural type because the only constraint that both roles

co/contra variance of roles/factories in theory.pod

2005-11-03 Thread TSa
HaloO, I don't understand why theory.pod states that roles are covariant, unary theories and factories are contravariant. I would expect the opposite from the requirement that all functions in roles only take the topic type while function in factories only return the topic type. So if A : B, I

Re: co/contra variance of roles/factories in theory.pod

2005-11-03 Thread Luke Palmer
On 11/3/05, TSa [EMAIL PROTECTED] wrote: So if A : B, I would expect Role{B} : Role{A} and Factory{A} : Factory{B} on the following rational. Well, it's possible that I'm abusing the terms, since I first heard the terms from you and inferred what they meant. However, there is a problem in your

Re: co/contra variance of roles/factories in theory.pod

2005-11-03 Thread Luke Palmer
On 11/3/05, Luke Palmer [EMAIL PROTECTED] wrote: If Foo2 were a role (that is, if it obeys the role relation above), then the only thing bar2() could do would be to take some side-effect action and then return the same object it was passed. Here's a proof: Given ^T $x where Foo{^T}.

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-03 Thread Pete Krawczyk
Subject: Re: Test::More behavior issue with Devel::Cover + patch From: Ricardo SIGNES [EMAIL PROTECTED] Date: Thu, 3 Nov 2005 13:14:34 -0500 }* Pete Krawczyk [EMAIL PROTECTED] [2005-11-03T12:46:48] } } The solution I see is to make sure the object can() isa(), thus avoiding } the die in the

Re: Segfault with structs and CSTR

2005-11-03 Thread Joshua Isom
I'm on FreeBSD 5.4 so aside from the char array, the rest was correct, which I guess means it's not at all portable. It's working now, now I just need to expand on it. On Nov 3, 2005, at 9:01 AM, Leopold Toetsch wrote: Joshua Isom wrote: I'm trying to use libc to be able to do a directory

shr bug when shifting by a multiple of the int size?

2005-11-03 Thread Joshua Isom
I was trying to use bit shifting for division by multiples of two, but if the shift amount is a multiple of the int size, it seems to fail to shift the bits. Here's some example code demonstrating it. .sub _main @MAIN .local int a, b, c print a\tb\tc\n a = 24 b = 32 c = a

Re: shr bug when shifting by a multiple of the int size?

2005-11-03 Thread Leopold Toetsch
On Nov 3, 2005, at 20:49, Joshua Isom wrote: I was trying to use bit shifting for division by multiples of two, but if the shift amount is a multiple of the int size, it seems to fail to shift the bits. Here's some example code demonstrating it. .sub _main @MAIN .local int a, b, c

Re: shr bug when shifting by a multiple of the int size?

2005-11-03 Thread Luke Palmer
On 11/3/05, Leopold Toetsch [EMAIL PROTECTED] wrote: On Nov 3, 2005, at 20:49, Joshua Isom wrote: I was trying to use bit shifting for division by multiples of two, but if the shift amount is a multiple of the int size, it seems to fail to shift the bits. Here's some example code