[perl #35855] Problem with Perl 5.6.1

2005-05-18 Thread François
# New Ticket Created by Franois PERRAD # Please include the string: [perl #35855] # in the subject line of all future correspondence about this issue. # URL: 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

Re: t/src/manifest.t failed

2005-05-18 Thread Juergen Boemmels
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, you got

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-18 Thread Vladimir Lipsky
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 printthread\n

Re: t/src/manifest.t failed

2005-05-18 Thread Leopold Toetsch
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

Re: Parrot as an extension language

2005-05-18 Thread Colin Paul Adams
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 - not even an

Re: Parrot as an extension language

2005-05-18 Thread Leopold Toetsch
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:

Virtual methods

2005-05-18 Thread Aaron Sherman
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

Default precedence level of user defined infix ops

2005-05-18 Thread Ingo Blechschmidt
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 bar baz foo; # true 23 bar baz foo; # false ...we wondered

Re: Virtual methods

2005-05-18 Thread Luke Palmer
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 the

Re: Default precedence level of user defined infix ops

2005-05-18 Thread Luke Palmer
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

Problems linking with parrot

2005-05-18 Thread Colin Paul Adams
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

Re: Problems linking with parrot

2005-05-18 Thread Jeff Horwitz
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

Re: Problems linking with parrot

2005-05-18 Thread Colin Paul Adams
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

Re: Virtual methods

2005-05-18 Thread Aaron Sherman
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 always

Re: t/src/manifest.t failed

2005-05-18 Thread Bernhard Schmalhofer
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

Re: The Void type

2005-05-18 Thread TSa (Thomas Sandlaß)
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

Re: Closures and CALLER

2005-05-18 Thread TSa (Thomas Sandlaß)
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? And I'm

Re: t/src/manifest.t failed

2005-05-18 Thread Juergen Boemmels
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 is one of

Re: t/src/manifest.t failed

2005-05-18 Thread Juergen Boemmels
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

Re: ^method ?

2005-05-18 Thread TSa (Thomas Sandlaß)
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 reference

Parrot_setup_argv in embed.h

2005-05-18 Thread Colin Paul Adams
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

[PATCH] More t/p6rules tests

2005-05-18 Thread Dino Morelli
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] /( )\

Re: (1,(2,3),4)[2]

2005-05-18 Thread TSa (Thomas Sandlaß)
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 =

Re: Multiple colons

2005-05-18 Thread TSa (Thomas Sandlaß)
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

Re: Parrot_setup_argv in embed.h

2005-05-18 Thread Leopold Toetsch
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

Re: Closures and CALLER

2005-05-18 Thread Aaron Sherman
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-pickings from me: 1)

Re: ^method ? (Is $_ still aliasing $?SELF?)

2005-05-18 Thread TSa (Thomas Sandlaß)
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

Re: [PATCH] More t/p6rules tests

2005-05-18 Thread Dino Morelli
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

Re: [PATCH] More t/p6rules tests

2005-05-18 Thread Dino Morelli
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. Trying to

Inline::Pugs landed to Pugs tree

2005-05-18 Thread Autrijus Tang
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

testing that processes terminate

2005-05-18 Thread Kevin Scaldeferri
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

Re: Default precedence level of user defined infix ops

2005-05-18 Thread Sam Vilain
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 Haskell's ()

r8118: MSWin32 Test Results

2005-05-18 Thread Ron Blaschke
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

Re: Default precedence level of user defined infix ops

2005-05-18 Thread Damian Conway
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 precisely

Re: (1,(2,3),4)[2]

2005-05-18 Thread Juerd
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.

reduce metaoperator on an empty list

2005-05-18 Thread Matt Fowles
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

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-18 Thread Vladimir Lipsky
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 +++

Re: reduce metaoperator on an empty list

2005-05-18 Thread Rod Adams
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Mark A. Biggar
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Stuart Cook
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Stuart Cook
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

Testing approach for server programs

2005-05-18 Thread Walter Goulet
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Rob Kinyon
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 people

Re: reduce metaoperator on an empty list

2005-05-18 Thread Rod Adams
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 or

Perl 6 Summary for 2005-05-03 through 2005-05-17

2005-05-18 Thread Matt Fowles
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Mark A. Biggar
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

Re: reduce metaoperator on an empty list

2005-05-18 Thread Brad Bowman
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 prepended?