Re: Rule Parameters

2005-03-01 Thread Larry Wall
On Tue, Mar 01, 2005 at 11:06:17PM -0600, Rod Adams wrote: : Since the line between rules and subs is already blurring significantly, : I want to blur it a little more. I want to write rules which can take : parameters. No problem. That's how the arguments to rules like are already passed. If

Test-Harness-2.47_02.tar.gz

2005-03-01 Thread Andy Lester
file: $CPAN/authors/id/P/PE/PETDANCE/Test-Harness-2.47_02.tar.gz size: 64982 bytes md5: a9698f7e608a72650fee33d25a08506b I'm starting the infrastructure of having Test::Harness::Point objects in the straps, so that calling programs can access the test line properties however they choose.

Re: Rule Parameters

2005-03-01 Thread Luke Palmer
Rod Adams writes: > Since the line between rules and subs is already blurring significantly, > I want to blur it a little more. I want to write rules which can take > parameters. No no no! That's too powerful. Wow, skimming through both S5 and A5 and I see no mention of such a thing. I know w

Rule Parameters

2005-03-01 Thread Rod Adams
Since the line between rules and subs is already blurring significantly, I want to blur it a little more. I want to write rules which can take parameters. Consider that I am parsing HTML (a very frequent occurrence), and wish to make a Rule that matches a balanced tag from open to close. I wa

Re: Dynamically Scoped Dynamic Scopes

2005-03-01 Thread Larry Wall
On Sun, Feb 27, 2005 at 10:52:58AM -0800, Dave Whipp wrote: : One could imagine implementing this by creating the scopes as instances : of an object, and then binding the object's attributes onto the : variables (i.e. "our $foo := $obj.bar"). The "scope space" object would : then be the set of g

Re: "foo".say and "foo" .say

2005-03-01 Thread Patrick R. Michaud
On Tue, Mar 01, 2005 at 07:52:24PM -0500, Abhijit Mahabal wrote: > > In general, is this the right place to send pugs bug reports? Unless/until Autrijus says otherwise, this is a terrific place to send pugs bug reports. Pm

"foo".say and "foo" .say

2005-03-01 Thread Abhijit Mahabal
I had not realized that "foo".say is valid p6 :) Is "foo" .say also valid p6? No reason for it not to be valid Pugs currently works with the non-space version, but barfs at the space version... In general, is this the right place to send pugs bug reports? --abhijit

Re: Valid hash keys?

2005-03-01 Thread Luke Palmer
Alex Burr writes: > On Sun, Feb 27, 2005 at 03:36:42PM -0700, Luke Palmer wrote: > > But the biggest problem is that if the user overloads 'equal' on two > > objects, the hash should consider them equal. We could require that to > > overload 'equal', you also have to overload .hash so that you've

Re: parsing ok((2+3)==5)

2005-03-01 Thread Abhijit Mahabal
Autrijus Tang wrote: On Sun, Feb 27, 2005 at 04:14:34PM -0500, Abhijit Mahabal wrote: I hunted down the cause of the non-parsing of ok((2 + 3) == $five, "== (sum on lhs)"); in 03operator.t, but am not yet up to speed in Haskell to fix it. Below is the location of the problem. The error is in Parse

Re: Valid hash keys?

2005-03-01 Thread Alex Burr
On Sun, Feb 27, 2005 at 03:36:42PM -0700, Luke Palmer wrote: > But the biggest problem is that if the user overloads 'equal' on two > objects, the hash should consider them equal. We could require that to > overload 'equal', you also have to overload .hash so that you've given > some thought to th

Re: TAP and STDERR

2005-03-01 Thread Peter Kay
Michael G Schwern wrote: Is it possible to standardize this, so a generic harness knows which test a comment line acctually describes? I'm going to call a big, fat YAGNI on this one for the time being. It requires a change to both the protocol and testing libraries for a minimal organizational im

Re: [perl #34285] [BUG] Is string encoding written to PBC file

2005-03-01 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > with 'make testr' I get a single test failure. My guess is that the > string encoding is not properly written to the dumped PBC file: Fixed. leo