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 insid
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 sim
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.
>
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 wo
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
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 m
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-conc
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 w
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
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
.loc
# New Ticket Created by Will Coleda
# Please include the string: [perl #37600]
# in the subject line of all future correspondence about this issue.
# 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 HEREDOCS,
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/
Will Coleda (via RT) wrote:
error:imcc:The opcode 'print' (print<0>) 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 nam
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
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' (print<0>) was not found. Check the
type and number of the arguments
in macro '.say' line 2
included from
> 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
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
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
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
-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
* 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
pgp
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 impo
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
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 i
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}
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 t
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 l
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
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
p
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
30 matches
Mail list logo