[perl #39926] [TODO] :init attribute

2006-10-18 Thread Patrick R. Michaud via RT
The issue of having an :init pragma for subs came up again during today's #parrotsketch meeting, and I volunteered to summarize the discussion for ticket #39926 and the mailing list. The :init pragma is intended to make it easier for automatically generated modules to make sure that

Re: [perl #40543] [NEW] Test for space after curly braces

2006-10-18 Thread Paul Cochrane
this is too noisy as ~700 tests. please convert it to one test, like the other coding standard tests. Ok. Have changed it to be the same as the other coding standard tests. See attached patch. also, it should apply to perl files, as well. in fact, it should probably apply to most files in

[perl #40560] [PATCH] minor languages/regex/lib/Regex/Grammar.y fix

2006-10-18 Thread Paul Cochrane
# New Ticket Created by Paul Cochrane # Please include the string: [perl #40560] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40560 Hi, This patch gets regex/lib/Regex/Grammar.y to pass the

Re: Edge case: incongruent roles

2006-10-18 Thread TSa
HaloO, Jonathan Lang wrote: If at all possible, I would expect Complex to compose Num, thus letting a Complex be used anywhere that a Num is requested. This will not work. The Num type is ordered the Complex type isn't. The operators , =, and = are not available in Complex. Though I can

Re: class interface of roles

2006-10-18 Thread TSa
HaloO Jonathan, you wrote: I think I found the core of the issue here; it has to do with the differences between roles and mixins, with an analogous difference between compile-time composition and runtime composition. Details follow. I think we are basically through the discussion. Thank you

Re: Edge case: incongruent roles

2006-10-18 Thread Jonathan Lang
TSa wrote: Jonathan Lang wrote: If at all possible, I would expect Complex to compose Num, thus letting a Complex be used anywhere that a Num is requested. This will not work. The Num type is ordered the Complex type isn't. The operators , =, and = are not available in Complex. They can

Re: Edge case: incongruent roles

2006-10-18 Thread Nicholas Clark
On Wed, Oct 18, 2006 at 06:55:16AM -0700, Jonathan Lang wrote: TSa wrote: Jonathan Lang wrote: If at all possible, I would expect Complex to compose Num, thus letting a Complex be used anywhere that a Num is requested. This will not work. The Num type is ordered the Complex type isn't.

Re: Edge case: incongruent roles

2006-10-18 Thread Jonathan Lang
Nicholas Clark wrote: Jonathan Lang wrote: They can be: $A $B if $A.x $B.x | $A.y $B.y; $A $B if $A.x $B.x | $A.y $B.y; This also allows you to unambiguously order any arbitrary set of complex numbers. If I'm reading that correctly then there are values of $A and $B for which $A

Re: class interface of roles

2006-10-18 Thread Jonathan Lang
TSa wrote: you wrote: I think I found the core of the issue here; it has to do with the differences between roles and mixins, with an analogous difference between compile-time composition and runtime composition. Details follow. I think we are basically through the discussion. Thank you

Re: Edge case: incongruent roles

2006-10-18 Thread mark . a . biggar
-- Original message -- From: Jonathan Lang [EMAIL PROTECTED] TSa wrote: Jonathan Lang wrote: If at all possible, I would expect Complex to compose Num, thus letting a Complex be used anywhere that a Num is requested. This will not work. The Num type is

sub :init implementation

2006-10-18 Thread Kevin Tew
The attached patch is broken because of lack of flag space. I coded it up this morning. It wasn't too bad except that we have run out of PObj flags in which to store sub attributes. Ideas? Also how do I get flex and bison to regen the grammar? I made real clean perl Configure.pl --maintainer

[perl #40562] [TODO] add 'list policies' option to t/op/perlcritic.t

2006-10-18 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #40562] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40562 add a command-line option to to t/op/perlcritic.t to display a list of tested

Re: class interface of roles

2006-10-18 Thread Larry Wall
On Tue, Oct 17, 2006 at 04:22:59PM -0700, Jonathan Lang wrote: : I've never really been happy with the inconsistency between runtime : composition and compile-time composition; but my problem has generally : been with the runtime side of things - in particular, I find the fact : that does A does B

Re: [perl #39926] [TODO] :init attribute

2006-10-18 Thread Leopold Toetsch
Am Mittwoch, 18. Oktober 2006 17:20 schrieb Kevin Tew: Working code with test. I stole PBC_POSTCOMP's flag for the short term. That's an unfortunate decision. There are load-time flags and run-time flags. You can just take one of the runtime-flags. I'd propose you use: SUB_FLAG_TAILCALL

Re: [perl #39926] [TODO] :init attribute

2006-10-18 Thread Kevin Tew
Thanks I didn't know which flag too pick. I finally did get flex and bison to run. Do you thing you could annotate the rest of the flags as to when they are used? Kevin Leopold Toetsch wrote: Am Mittwoch, 18. Oktober 2006 17:20 schrieb Kevin Tew: Working code with test. I stole

Re: [QUESTION] PMC Pre-allocation

2006-10-18 Thread Leopold Toetsch
Am Mittwoch, 18. Oktober 2006 01:35 schrieb Karl Forner: Hi, Is there a way to specify a minimum allocation size for PMCs like strings or arrays ? Something like in perl : %h = 1000 ? It could boost execution times when you have a good idea of the space you need. For example, I'd like to

Re: [perl #39926] [TODO] :init attribute

2006-10-18 Thread Leopold Toetsch
Am Mittwoch, 18. Oktober 2006 20:46 schrieben Sie: Do you thing you could annotate the rest of the flags as to when they are used? typedef enum { SUB_FLAG_CORO_FF = PObj_private0_FLAG, /* r */ SUB_FLAG_C_HANDLER= PObj_private0_FLAG, r / C exceptions only

Re: class interface of roles

2006-10-18 Thread Jonathan Lang
Larry Wall wrote: You've got it inside out. Unordered is just does A | B | C or some such, the | there really being coerced to a set construction, not a junction. In fact, would work just as well. I only used | because it's more readable. Autocoercion of junctions to sets is, of course,

[svn:perl6-synopsis] r13210 - doc/trunk/design/syn

2006-10-18 Thread larry
Author: larry Date: Wed Oct 18 13:57:40 2006 New Revision: 13210 Modified: doc/trunk/design/syn/S05.pod Log: word boundaries are defined in terms of \w, not \s Modified: doc/trunk/design/syn/S05.pod == ---

Re: Edge case: incongruent roles

2006-10-18 Thread Jonathan Lang
Mark Biggar wrote: Jonathan Lang wrote: They can be: $A $B if $A.x $B.x | $A.y $B.y; $A $B if $A.x $B.x | $A.y $B.y; That dosn't work. Agreed. The above was written in haste, and contained a couple of fatal syntax errors that I didn't intend. Try this: multi infix: =

[svn:perl6-synopsis] r13211 - doc/trunk/design/syn

2006-10-18 Thread larry
Author: larry Date: Wed Oct 18 14:49:21 2006 New Revision: 13211 Modified: doc/trunk/design/syn/S05.pod Log: missing = from particle++ Modified: doc/trunk/design/syn/S05.pod == --- doc/trunk/design/syn/S05.pod

[perl #40564] [TODO] fix perlcritic Subroutines::RequireFinalReturn policy

2006-10-18 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #40564] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40564 currently, this policy does not ignore subs which exit or die... it forces the

[PATCH] today's build failed because of a missing 'use'

2006-10-18 Thread Karl Forner
Hi, Just checked out parrot and the build failed like this:cc -o miniparrot -L/usr/local/lib -Wl,-E compilers/imcc/main.o \ -Wl,-rpath=/home/kforner/dev/parrot/test/parrot/blib/lib -L/home/kforner/dev/parrot/test/parrot/blib/lib -lparrot -ldl -lm -lpthread -lcrypt -lrt src/null_config.o

Re: Edge case: incongruent roles

2006-10-18 Thread mark . a . biggar
-- Original message -- From: Jonathan Lang [EMAIL PROTECTED] Mark Biggar wrote: Jonathan Lang wrote: They can be: $A $B if $A.x $B.x | $A.y $B.y; $A $B if $A.x $B.x | $A.y $B.y; That dosn't work. Agreed. The above was written in

Re: class interface of roles

2006-10-18 Thread Larry Wall
Though actually, now that I think about it, the cascaded notation in S12 is illegal according to S03, since does is classified as non-chaining, which implies non-associative. Hmm. We'd have to make it right associative somehow. Put it in with ** maybe? Hmm. Or leave it non-associative and

Re: class interface of roles

2006-10-18 Thread Larry Wall
On Wed, Oct 18, 2006 at 01:32:14PM -0700, Jonathan Lang wrote: : The | notation is mentioned in S012:1029, by the way. Obviously you : still haven't quite memorized all the synopses. :-) : : Actually, I was very well aware of that fact. Oops, didn't realize you were suggesting a semantic

Re: [PATCH] today's build failed because of a missing 'use'

2006-10-18 Thread Kevin Tew
Yeah, I caused this. Patch Applied Kevin Karl Forner wrote: Hi, Just checked out parrot and the build failed like this: cc -o miniparrot -L/usr/local/lib -Wl,-E compilers/imcc/main.o \ -Wl,-rpath=/home/kforner/dev/parrot/test/parrot/blib/lib

Re: class interface of roles

2006-10-18 Thread Jonathan Lang
Larry Wall wrote: Though actually, now that I think about it, the cascaded notation in S12 is illegal according to S03, since does is classified as non-chaining, which implies non-associative. Hmm. We'd have to make it right associative somehow. Put it in with ** maybe? Hmm. Or leave it