# New Ticket Created by FranÃois PERRAD
# Please include the string: [perl #35855]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35855 >
I notice that building with Perl 5.6.1 (on Win32 with Perl 5.6.1
ActiveState-buil
On Wednesday 18 May 2005 07:52, Leopold Toetsch wrote:
> Dino Morelli wrote:
> > I'm seeing the following test failure at r8113
> >
> > t/src/manifestNOK 6# Failed test (t/src/manifest.t at line 79)
>
> I'd say we just drop this test. Whenever you do reasoanble work in the
> working tree, y
As stated already, this (and possibly other thread) test(s) can't
succeed as long as Win32 has no event loop that passes the terminate
event on to the running interpreter.
If you read the output that Jerry sent earlier, you would have seen
that the thread doesn't ever reach to the print"thread\n
Juergen Boemmels wrote:
On Wednesday 18 May 2005 07:52, Leopold Toetsch wrote:
I'd say we just drop this test. Whenever you do reasoanble work in the
working tree, you got test files, editor swap file and whatnot.
Still it is one of the most often failing tests, because people tend to
forget to u
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:
Autrijus> On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul
Autrijus> Adams wrote:
>> But when I look at http://www.parrotcode.org/docs/embed.html, I
>> can see no way of getting information back from the script -
Colin Paul Adams wrote:
Autrijus> my $return_str = Parrot_call_sub( $interp,
Autrijus> $code_pmc, const_string("SS"),
Autrijus> const_string("Your_input_string_here"), );
I'm confused by this - what language is it written in? Perl?
APL: Autrijus' Pseudocde Language
And will:
Parrot_
In Perl 6, I don't think we need to tag methods as "virtual" like C++
does, since we have the handy yadda, yadda to do that for us.
However, there is a variant of C++'s virtual that I'd love to see. By
default a role cannot override the methods of a class, but if it could
override those methods sp
Hi,
now that the following works in Pugs :)...
sub infix:<.> (Code &x, Code &y) { sub ($z) { x(y($z)) } }
(&say . &int)(10/3);# 3
use Set;
sub infix:<â> ($item, @set) {
set(@set).includes($item);
}
"foo" â ; # true
23â ; # false
...we wondered what the
On 5/18/05, Aaron Sherman <[EMAIL PROTECTED]> wrote:
> In Perl 6, I don't think we need to tag methods as "virtual" like C++
> does, since we have the handy yadda, yadda to do that for us.
>
> However, there is a variant of C++'s virtual that I'd love to see. By
> default a role cannot override th
On 5/18/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
(B> Hi,
(B>
(B> now that the following works in Pugs :)...
(B>
(B> sub infix:<.> (Code &x, Code &y) { sub ($z) { x(y($z)) } }
(B> (&say . &int)(10/3);# 3
(B>
(B> use Set;
(B> sub infix:<$B":(B> ($item, @set) {
(B>
I've nearly got my first Eiffel program with an embedded parrot VM to compile
- well, actually, it DOES compile, just one remaining link problem,
which I can't figure out:
gcc -o hello -O2 -m486 -pipe
-I/opt/Eiffel55/studio/spec/linux-glibc2.1/include -I.
-I/home/colin/parrot/include -I/home/co
you need to link with src/parrot_config.o (a recent change).
http://www.nntp.perl.org/group/perl.perl6.internals/29468
On 18 May 2005, Colin Paul Adams wrote:
> I've nearly got my first Eiffel program with an embedded parrot VM to compile
> - well, actually, it DOES compile, just one remaining l
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes:
Jeff> you need to link with src/parrot_config.o (a recent change).
Thanks, that did the trick.
--
Colin Adams
Preston Lancashire
On Wed, 2005-05-18 at 10:51, Luke Palmer wrote:
> Except that mixins like this always treat things as "virtual".
> Whenever you mixin a role at runtime, Perl creates an empty, anonymous
> subclass of the current class and mixes the role in that class. Since
> roles beat superclasses, you'll alwa
Leopold Toetsch schrieb:
Juergen Boemmels wrote:
On Wednesday 18 May 2005 07:52, Leopold Toetsch wrote:
I'd say we just drop this test. Whenever you do reasoanble work in the
working tree, you got test files, editor swap file and whatnot.
Yep, checking for temporary files is not a priority.
But k
HaloO Autrijus,
you wrote:
On Fri, May 13, 2005 at 07:13:53PM +0200, "TSa (Thomas Sandlaß)" wrote:
Larry Wall wrote:
: Void context still exists and is not a form of singular or plural
: context. Perhaps this should be called nullar context, although void
: context works equally well for me and is
Aaron Sherman wrote:
Ok, so log and log10:
multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base);
&log10<> := &log<>.assuming:base(10);
Sorry, I don't want to interfere but two nit-pickings from me:
1) It's &log10:() and &log:(: Num ?$, Num +$) these days, isn't it?
A
On Wednesday 18 May 2005 12:12, Leopold Toetsch wrote:
> Juergen Boemmels wrote:
> > On Wednesday 18 May 2005 07:52, Leopold Toetsch wrote:
> >>I'd say we just drop this test. Whenever you do reasoanble work in the
> >>working tree, you got test files, editor swap file and whatnot.
> >
> > Still it
On Wednesday 18 May 2005 20:14, Bernhard Schmalhofer wrote:
[...]
> That's the same as checking that all files in SVN are also in MANIFEST.
> So a list diff
> between 'MANIFEST' and 'svn list -R' should be in t/src/manifest.t.
> Currently this is not checked in 't/src/manifest.t', but I think it is
HaloO Juerd,
you wrote:
(This illustrates my feeling about @foo[] being the same as @foo. It
feels inconsistent with &foo() not being &foo.)
I have the same feeling. But I would like @foo[] to mean something else
than plain @foo which should be---hmm, how shall I put that---a
underefenced referenc
This function declaration does not appear to have a definition.
I commented out the declaration, in order to get my code to compile.
Is this the right thing to do? embed.c has a reference to it commented out.
--
Colin Adams
Preston Lancashire
I moved the \N test out of t/p6rules/cclass.t and made a new file for
escape tests: escape.t, currently containing tests for \s \S \w \W \d \D
\n \N
Patch file for MANIFEST and cclass.t, and new file escape.t attached.
-Dino
--
.~.Dino Morelli
/V\email: [EMAIL PROTECTED]
/( )\ webl
Juerd wrote:
my @b = [1,2,[3,4]];
is([EMAIL PROTECTED], 1, 'Array length, nested [], outer []s');
Isn't that a bit inconvenient? To get e.g. 2 out of @b
one has to write @b[0][1] while for $b a $b[1] suffices.
And @x = @b maintains this superficial level of indirection?
Does @x = @b
Autrijus Tang wrote:
I think the former is simpler ("always use coercion"), but the latter
makes it possible to define various other things that, although not
isomorphic with builtin numbers, can still use arithmetic operators.
I haven't understood what Larry meant with hard constraint but I would
Colin Paul Adams wrote:
This function declaration does not appear to have a definition.
I commented out the declaration, in order to get my code to compile.
Should probably be a puplic API function again, when calling conventions
have settled.
leo
On Wed, 2005-05-18 at 14:57, "TSa (Thomas Sandlaß)" wrote:
> Aaron Sherman wrote:
> > Ok, so log and log10:
> >
> > multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base);
> > &log10<> := &log<>.assuming:base(10);
>
> Sorry, I don't want to interfere but two nit-picking
Damian Conway wrote:
Now, personally, I would like to see a short-cut for *both* types of
method call,...
Looks like this syntax is now .method and ./method plus the private
counterpart .:method.
If I have .foo() as $_.foo(), then I can get unary method call on
invocant very easily, even if method
On Wed, 18 May 2005, Dino Morelli wrote:
>Patch file for MANIFEST and cclass.t, and new file escape.t attached.
>
Looks like I missed the escape.t attachment.
-Dino
--
.~.Dino Morelli
/V\email: [EMAIL PROTECTED]
/( )\ weblog: http://categorically.net/d/blog/
^^-^^ preferred dist
On Wed, 18 May 2005, Dino Morelli wrote:
>On Wed, 18 May 2005, Dino Morelli wrote:
>
>>Patch file for MANIFEST and cclass.t, and new file escape.t attached.
>>
>
>Looks like I missed the escape.t attachment.
>
The list server keeps eating my attached homework. Won't let me attach a
.t file.
Tryi
An one-hour hack of mine proved fruitful. This is Perl 5 script,
calling into Perl 6 functions defined inline:
#!/usr/bin/perl
use Inline Pugs => '
sub postfix: { [*] 1..$_ }
sub sum_factorial { [+] 0..$_! }
';
print sum_factorial(3); # 21
The implementation is in
I recently had to deal with a bug where under certain circumstances a
server process would never terminate, but would block indefinitely in
the shutdown process. Being a good coder, I wrote a unit test to
reproduce the problem before I fixed it. The test is happy when I run
it normally, and e
Luke Palmer wrote:
And how do I explicitly define the precedence?
Using the `tighter`, `looser`, and `equiv` traits. You specify
precedence in terms of the precedence of other existing ops.
sub infix:<.>(&f, &g) is looser(&infix:<+>) {...}
This is interesting. So, infix:< > is similar to Hask
Below are the test results of
Windows XP SP2
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077
for 80x86
Activestate Python 2.4.1 Build 245
Activestate Perl 5.8.6 Build 811
ANTLR 2.7.5
ICU 3.2
GDBM 1.8.3
GMP 4.1.4
Failed TestStat Wstat T
Luke Palmer wrote:
> In the absence of a trait specifying otherwise, the precedence
> defaults to the same as infix:<+>.
Heh. It'd be much safer to *require* a precedence specification on any new
operator. If they're changing the parser, they ought to have the decency to be
explicit about precise
"TSa (Thomas Sandlaß)" skribis 2005-05-18 21:54 (+0200):
> Juerd wrote:
> >>my @b = [1,2,[3,4]];
> >>is([EMAIL PROTECTED], 1, 'Array length, nested [], outer []s');
> Isn't that a bit inconvenient? To get e.g. 2 out of @b
> one has to write @b[0][1] while for $b a $b[1] suffices.
http://le
All~
What does the reduce metaoperator do with an empty list?
my @a;
[+] @a; # 0? exception?
[*] @a; # 1? exception?
[<] @a; # false?
[||] @a; # false?
[&&] @a; # true?
Also if it magically supplies some correct like the above, how does it
know what that value is?
Thanks,
Matt
--
"Computer Sci
As stated already, this (and possibly other thread) test(s) can't succeed
as long as Win32 has no event loop that passes the terminate event on to
the running interpreter.
1) Why the heck
--- parrot/config/gen/platform/win32/threads.h Mon May 2 14:40:59 2005
+++ parrot-devel/config/gen/platform/win
Matt Fowles wrote:
All~
What does the reduce metaoperator do with an empty list?
my @a;
[+] @a; # 0? exception?
[*] @a; # 1? exception?
[<] @a; # false?
[||] @a; # false?
[&&] @a; # true?
Also if it magically supplies some correct like the above, how does it
know what that value is?
My general t
Matt Fowles wrote:
All~
What does the reduce metaoperator do with an empty list?
my @a;
[+] @a; # 0? exception?
[*] @a; # 1? exception?
[<] @a; # false?
[||] @a; # false?
[&&] @a; # true?
Also if it magically supplies some correct like the above, how does it
know what that value is?
The usual defin
On 5/19/05, Matt Fowles <[EMAIL PROTECTED]> wrote:
> All~
>
> What does the reduce metaoperator do with an empty list?
>
/me puts on his lambda hat
In Haskell, there is a distinction between foldl and foldl1 (similar
remarks apply to foldr/foldr1[1]):
The former (foldl) requires you to give an
To summarise what I think everyone is saying, []-reducing an empty
list yields either:
1) undef (which may or may not contain an exception), or
2) some unit/identity value that is a trait of the operator,
depending on whether or not people think (2) is actually a good idea.
The usual none(@Larry
Hi,
While developing test scripts for Net::SSLeay, I've run into an problem
where the legacy test.pl is forking off child processes to start server
programs. Subsequent tests in the script then send input to those server
programs and test the outputs to determine pass fail. You can probably
alr
On 5/18/05, Stuart Cook <[EMAIL PROTECTED]> wrote:
> To summarise what I think everyone is saying, []-reducing an empty
> list yields either:
>
> 1) undef (which may or may not contain an exception), or
> 2) some unit/identity value that is a trait of the operator,
>
> depending on whether or not p
Rob Kinyon wrote:
On 5/18/05, Stuart Cook <[EMAIL PROTECTED]> wrote:
To summarise what I think everyone is saying, []-reducing an empty
list yields either:
1) undef (which may or may not contain an exception), or
2) some unit/identity value that is a trait of the operator,
depending on whether o
Perl 6 Summary for 2005-05-03 through 2005-05-17
All~
Welcome ot another fortnight's summary. Wouldn't it just figure that I
can't think of anything sufficiently non-sequiterish to amuse myself.
Perhaps I need a running gag like Leon Brocard or chromatic's
cummingseque capitali
Stuart Cook wrote:
To summarise what I think everyone is saying, []-reducing an empty
list yields either:
1) undef (which may or may not contain an exception), or
2) some unit/identity value that is a trait of the operator,
depending on whether or not people think (2) is actually a good idea.
The u
> Another alternative is to give the user the option of specifying such
> a unit when using the reduction meta-operator, but this seems to work
> against the whole point of [+] (which is brevity). If you want to
> specify your own unit, use '&reduce'.
Can't the appropriate identity just be prepen
> The list server keeps eating my attached homework. Won't let me attach a
> .t file.
This is because your mailer is declaring it to be an
application/x-troff file.
On 5/19/05, Brad Bowman <[EMAIL PROTECTED]> wrote:
> Can't the appropriate identity just be prepended?
>
> > > my @a;
> > > [+] @a; # 0? exception?
> [+] (0, @a);
>
> > > [*] @a; # 1? exception?
> [*] (1, @a);
>
> > > [<] @a; # false?
> [<] (-Inf, @a); # ???
Wow, that's actually pretty elegant
On Wed, May 18, 2005 at 09:52:28PM -0500, Walter Goulet wrote:
> The obvious way to follow this testing paradigm is to simply start and
> stop servers inside each test script, but that seems wasteful as ssl
> servers aren't the quickest servers to start up.
I'd first see if this approach runs ac
50 matches
Mail list logo