Re: What the heck is a submethod (good for)

2005-10-13 Thread Brent 'Dax' Royal-Gordon
Luke Palmer <[EMAIL PROTECTED]> wrote: > Okay, I seriously have to see an example of a submethod in use. Likewise. As far as I've seen, submethods are a kludge wedged in for cases where you're actually calling all the way up the inheritence tree. Personally, I've always thought a "cascade method

[perl #37430] [PATCH] support __delete_keyed_int methods in PMC objects

2005-10-13 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #37430] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37430 > In r9445 Leo added code to special-case the get_*_keyed_int and set_*_keyed_int m

[PATCH] split on strings

2005-10-13 Thread Jonathan Scott Duff
Here's a patch to implement the split opcode such that it splits on strings rather than regular expressions. I've also added a test to t/op/string.t Files affected: M ops/string.ops M t/op/string.t -Scott -- Jonathan Scott Duff [EMAIL PROTECTED] === ops/string.ops ===

Re: cpan testers and dependencies

2005-10-13 Thread Fergal Daly
On 10/12/05, David Landgren <[EMAIL PROTECTED]> wrote: > Fergal Daly wrote: > > http://www.nntp.perl.org/group/perl.cpan.testers/257538 > > > > shows a fail for Test-Benchmark but the fail seems to be caused by > > CPANPLUS not installing dependencies: > > Apparently it's a bug in CPANPLUS that sto

[perl #37428] [PATCH] Trivial typo fixes

2005-10-13 Thread via RT
# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #37428] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37428 > - Forwarded message from Nick Glencross <[EMAIL PROTECTED]> - From: Nick Gle

[perl #37431] [PATCH] (REVISED) support *_keyed_int methods in PMC objects

2005-10-13 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #37431] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37431 > REVISED-REVISED-REVISED In r9445 Leo added code to special-case the get_*_keyed_

[perl #32544] [TODO] split opcode unfinished

2005-10-13 Thread Will Coleda via RT
I've added this patch to ticket #32544. Thanks, Applied. > [coke - Thu Oct 13 05:20:53 2005]: > > Here's a patch to implement the split opcode such that it splits on > strings rather than regular expressions. I've also added a test to > t/op/string.t > > Files affected: > M ops/string.ops >

Re: [perl #37431] [PATCH] (REVISED) support *_keyed_int methods in PMC objects

2005-10-13 Thread Leopold Toetsch
Patrick R.Michaud (via RT) wrote: This patch (which replaces the patch I sent earlier in #37430) adds support for the other *_keyed_int methods (needed for PGE). The patch also updates the corresponding test in t/pmc/object_meths.t . Looks good. Just ci it - thanks. leo

Re: What the heck is a submethod (good for)

2005-10-13 Thread Matt Fowles
All~ On 10/13/05, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > Luke Palmer <[EMAIL PROTECTED]> wrote: > > Okay, I seriously have to see an example of a submethod in use. > > Likewise. As far as I've seen, submethods are a kludge wedged in for > cases where you're actually calling all the

Re: cpan testers and dependencies

2005-10-13 Thread Fergal Daly
On 10/13/05, James E Keenan <[EMAIL PROTECTED]> wrote: > David Landgren wrote: > > Fergal Daly wrote: > > > >> http://www.nntp.perl.org/group/perl.cpan.testers/257538 > >> > >> shows a fail for Test-Benchmark but the fail seems to be caused by > >> CPANPLUS not installing dependencies: > > > > > >

Re: What the heck is a submethod (good for)

2005-10-13 Thread Stevan Little
On Oct 13, 2005, at 9:47 AM, Matt Fowles wrote: On 10/13/05, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: Luke Palmer <[EMAIL PROTECTED]> wrote: Okay, I seriously have to see an example of a submethod in use. Likewise. As far as I've seen, submethods are a kludge wedged in for cases

Variable-sized register frames

2005-10-13 Thread Leopold Toetsch
Folks watching SVN checkins have already seen some patches floating by with: "Variable-sized reg frames" in the log head line. The complete plan is now available at: http://perlcabal.org/~lt/VR.txt There will be no visible impact on the surface of Parrot, all code will continue to run, *except*

Re: Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread Rob Kinyon
> I think this is an opportune time for me to express that I think the > ability to close-source a module is important. I love open source, > and I couldn't imagine writing anything by myself that I wouldn't > share. But in order for Perl to be taken seriously as a commercial > client-side langua

Re: Checklist for resolving a [PATCH] bug

2005-10-13 Thread Bernhard Schmalhofer
Joshua Hoblitt schrieb: It looks like the CREDITS file hasn't been getting updated. I'd like to revise that check-list to: - add the patch author to CREDITS or update the authors entry in CREDITS - add correspondence to the bug stating that the patch was applied AND the svn revision number. -

Re: Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread John Macdonald
On Thu, Oct 13, 2005 at 03:01:29PM -0400, Rob Kinyon wrote: > > I think this is an opportune time for me to express that I think the > > ability to close-source a module is important. I love open source, > > and I couldn't imagine writing anything by myself that I wouldn't > > share. But in order

Re: Proposal to make class method non-inheritable

2005-10-13 Thread TSa
HaloO, Stevan Little wrote: On Oct 11, 2005, at 8:47 PM, Larry Wall wrote: You seem to be arguing that a class has no state, but my view is that, in the abstract, a class encompasses the state of *all* its objects. It just hasn't picked one particular object to be at the moment. I love this n

Thoughs on Theory.pm

2005-10-13 Thread Dave Whipp
(ref: http://svn.openfoundry.org/pugs/docs/notes/theory.pod) >theory Ring{::R} { >multi infix:<+> (R, R --> R) {...} >multi prefix:<-> (R --> R){...} >multi infix:<-> (R $x, R $y --> R) { $x + (-$y) } >multi infix:<*> (R, R --> R) {...} ># on

Re: Thoughs on Theory.pm

2005-10-13 Thread David Storrs
On Oct 13, 2005, at 6:45 PM, Dave Whipp wrote: I started thinking about the "in general, unverifiable programmatically" bit. While obviously true, perhaps we can get closer than just leaving them as comments. It should be possible to associate a unit-test-generator with the theory, so I ca

Parrot leaks?

2005-10-13 Thread Alberto Simões
I've sent this before just to Leo, but this time I though it might be better to send to all people. I (and I think nobody more) is having malloc library complaining about a wrong free somewhere. I'm trying to debug it. In attach you can see the .pir I tried to compile, and the leaks log file

Re: Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread Yuval Kogman
On Wed, Oct 12, 2005 at 13:08:27 -0700, chromatic wrote: > Closed classes should not exist. > > At least, they should only exist if the person *running* Perl 6 wants > them to exist -- never if merely the class writer wants to close them. In theory I agree, and I hope that will be the defacto way

Re: First (developers) Release of Test::Shlomif::Harness

2005-10-13 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, Andy Lester <[EMAIL PROTECTED]> wrote: > On Mon, Oct 10, 2005 at 02:52:49PM -0700, chromatic ([EMAIL PROTECTED]) wrote: > > > I do NOT want to see that sort of thing as patches to Test::Harness. > > I have a few ideas myself on how to make T::H a little more clean

Re: Proposal to make class method non-inheritable

2005-10-13 Thread Stevan Little
On Oct 13, 2005, at 4:45 PM, TSa wrote: No, not that class has no state, but that with the currently specced classes we have inherited behaviors (class methods) but they do not inherit the accompanying state (class attributes) as well. I see this as potentially very problematic. What

Re: Thoughs on Theory.pm

2005-10-13 Thread Dave Whipp
David Storrs wrote: While I like the idea, I would point out that 1000 tests with randomly generated data are far less useful than 5 tests chosen to hit boundary conditions. I come from a hardware verification background. The trend in this industry is driven from the fact that the computer

Re(vised): Proposal to make class method non-inheritable

2005-10-13 Thread Stevan Little
Well, I suspected there would not be much support for my initial proposal on class methods, but I felt I had to try. Not being the type of person who gives up easily, I want to revise the proposal (incorporating some of the ideas in the responses). I propose that class methods are inheritab

Re: Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread Rob Kinyon
On 10/13/05, John Macdonald <[EMAIL PROTECTED]> wrote: > Just because you can't make locking perfect does not mean it > has no value. Acme::Bleach it is!

Re: Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread chromatic
On Fri, 2005-10-14 at 02:18 +0200, Yuval Kogman wrote: > On Wed, Oct 12, 2005 at 13:08:27 -0700, chromatic wrote: > > Closed classes should not exist. > > > > At least, they should only exist if the person *running* Perl 6 wants > > them to exist -- never if merely the class writer wants to clos

Re: [P6L] Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread Chip Salzenberg
On Thu, Oct 13, 2005 at 06:13:09PM -0700, chromatic wrote: > I just don't want people who merely write a module or class to be > able to prevent people who actually use that module or class from > using, extending, or poking around in it. Sounds kind of like Linus's opinion of close-source modules

Re: First (developers) Release of Test::Shlomif::Harness

2005-10-13 Thread Andy Lester
Since this is a community, you can also work with him to make it all work out. Shlomi and I have already discussed this. I don't think anyone should have to get anyone's permission to play with open source code. That's exactly right, they don't, and I would never presume to tell them that

Re: Re(vised): Proposal to make class method non-inheritable

2005-10-13 Thread Stuart Cook
On 14/10/05, Stevan Little <[EMAIL PROTECTED]> wrote: > So anyway, here are a few ideas, in no particular order: > >method bark (::Dog $d:) { ... } ># not sure if this notation is already taken or not > >method bark ($Dog $d:) { ... } ># not sure I like this one myself, but to me it

Continuing in the face of exceptions, and what's the negation of // ?

2005-10-13 Thread Austin Hastings
I retract my opposition to "err". After coding this: try { try { path = f.getCanonicalPath(); } catch (Exception e) { path = f.getAbsolutePath(); } } catch (Exception e) { path = f.toString(); } I am now a convert. To the extent that we are

Custom Metaclass and Inheritance of Class Methods

2005-10-13 Thread Stevan Little
Hey All, So, given the abundance of positive responses ;) for my "class methods don't inherit" proposal, I have decided to withdraw that proposal (see my last response on the thread). Of course, this means we now have to work out the details of exactly *how* they get inherited in all situ

Re: [P6L] Closed Classes Polemic (was Re: What the heck is a submethod (good for))

2005-10-13 Thread chromatic
On Thu, 2005-10-13 at 18:36 -0700, Chip Salzenberg wrote: > On Thu, Oct 13, 2005 at 06:13:09PM -0700, chromatic wrote: > > I just don't want people who merely write a module or class to be > > able to prevent people who actually use that module or class from > > using, extending, or poking around

Re: Thoughs on Theory.pm

2005-10-13 Thread Luke Palmer
On 10/13/05, Dave Whipp <[EMAIL PROTECTED]> wrote: > I started thinking about the "in general, unverifiable programmatically" > bit. While obviously true, perhaps we can get closer than just leaving > them as comments. It should be possible to associate a > unit-test-generator with the theory, so I