Re: thinking about variable context for like()

2003-11-17 Thread Rafael Garcia-Suarez
Potozniak, Andrew wrote: > > I would suggest something along the lines of: > > &like_html(actual_value, expected_regex, max_chars_to_output, > string_description); In fact I think that making max_chars_to_output a global configuration variable is a better option, because repeating it (if yo

Re: Refactoring a test program: advice sought

2003-11-17 Thread darren chamberlain
* Andrew Savige [2003-11-15 14:51]: > I took a quick look a mod_perl and Template Toolkit (TT). > TT has a: > lib/Template/Test.pm > which looks wrong to me (should that not be under t/lib instead?). Template::Test contains a bunch of (pre-Test::More) testing methods that are geared towards wri

RE: thinking about variable context for like()

2003-11-17 Thread Potozniak, Andrew
Maybe I'm off with my next comment and maybe I'm not but here it goes: What you're suggesting is a difference between mechanizm and policy. We want a function that will be just like Test::More::like, but we want it to only output a certain amount of chars because frankly we don't want to see all

Re: [COMMIT] IMCC changes

2003-11-17 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > * Add check for 0 arguments in PCC subs to skip code generate for > proto/nonproto >argument checking if there are no args. (Leo check this if it is the right >thing to do?) Looks good, but might not be compliant with Dan's runtime check philosophy

Re: IMCC problems with library loading

2003-11-17 Thread Leopold Toetsch
Jeff Clites <[EMAIL PROTECTED]> wrote: > I've run into a couple of issue with library loading which have their > origin down inside the IMCC code: > 1) External libraries are being loaded at parse time. > Inside of INS() in imcc/parser_util.c, Parrot_load_lib() is called at > parse-time when load

Re: Review of a book about VM

2003-11-17 Thread Stéphane Payrard
On Sat, Nov 15, 2003 at 02:10:35PM -, Peter Cooper wrote: > "Stéphane Payrard" <[EMAIL PROTECTED]> wrote: > > You posted your mini-review to London.pm: > > Thanks for that, that demonstrates my memory! > > > on virtual machines: "No, there's suprisingly little out > > there on virtual machin

Re: [COMMIT] IMCC changes

2003-11-17 Thread Dan Sugalski
On Mon, 17 Nov 2003, Leopold Toetsch wrote: > Melvin Smith <[EMAIL PROTECTED]> wrote: > > * Add check for 0 arguments in PCC subs to skip code generate for > > proto/nonproto > >argument checking if there are no args. (Leo check this if it is the right > >thing to do?) > > Looks good, but

Re: Calling conventions

2003-11-17 Thread Dan Sugalski
On Sun, 16 Nov 2003, Melvin Smith wrote: > The situation we have now is: Parrot is a VM, and technically we could > just punt the whole calling convention issue to a high level languages forum > (parrot-languages if there was one) or something, but sadly that wouldn't > work, because currently the

Calling conventions are in

2003-11-17 Thread Dan Sugalski
Sync up with CVS and read the changes in PDD03. I'll be addressing some of the HLL issues (including validation and named parameter lists) soon, since getting those nailed down would be reasonably useful. Dan --"it's like

Re: IMCC problems with library loading

2003-11-17 Thread Jeff Clites
On Nov 17, 2003, at 1:59 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: I've run into a couple of issue with library loading which have their origin down inside the IMCC code: 1) External libraries are being loaded at parse time. Inside of INS() in imcc/parser_util.c, Parrot_l

Re: IMCC problems with library loading

2003-11-17 Thread Leopold Toetsch
Jeff Clites <[EMAIL PROTECTED]> wrote: > My main point is that you can't do conditional library loading. This > code will try to load the "doesnt_exist" library, and I don't think it > should: > branch HERE > loadlib P1, "doesnt_exist" > HERE: > end > It's not because

Proposal: parrot-compilers list

2003-11-17 Thread Melvin Smith
In the past couple of years we've seen several sub-projects pop-up and subsequently fizzle out (maybe due to Parrot slow progress or maybe due to lack of critical mass). I propose creating 'parrot-compilers' as a general purpose list for any and all language development (until an appropriate time w

Re: Proposal: parrot-compilers list

2003-11-17 Thread Sterling Hughes
Melvin Smith wrote: In the past couple of years we've seen several sub-projects pop-up and subsequently fizzle out (maybe due to Parrot slow progress or maybe due to lack of critical mass). I propose creating 'parrot-compilers' as a general purpose list for any and all language development (until a

configure on windows

2003-11-17 Thread Pete Lomax
Hi, I've only just installed perl. Running Configure.pl on a windows box, I got 'bad command or file name' because line 12 of config\init\hints.pl is: my $hints = "config/init/hints/" . lc($^O) . ".pl"; I had to change it to: my $hints = "perl config/init/hints/" . lc($^O) . ".pl"; I'll carry

Re: Proposal: parrot-compilers list

2003-11-17 Thread Pete Lomax
On Mon, 17 Nov 2003 11:35:51 -0800, Sterling Hughes <[EMAIL PROTECTED]> wrote: >I think this would be a *very* cool thing. What he said. Pete Pete http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

Re: configure on windows

2003-11-17 Thread Pete Lomax
On Mon, 17 Nov 2003 20:46:32 +, Pete Lomax <[EMAIL PROTECTED]> wrote: >I got 'bad command or file name' because line 12 of >config\init\hints.pl is: > my $hints = "config/init/hints/" . lc($^O) . ".pl"; PS: that was the dos error, shouldn't there be an and/or die thing somewhere near it? Pete

Re: configure on windows

2003-11-17 Thread Jonathan Worthington
- Original Message - From: "Pete Lomax" <[EMAIL PROTECTED]> To: "Pete Lomax" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 17, 2003 10:20 PM Subject: Re: configure on windows > On Mon, 17 Nov 2003 20:46:32 +, Pete Lomax > <[EMAIL PROTECTED]> wrote: > > >I got 'ba

Win32 Build Problem

2003-11-17 Thread Jonathan Worthington
Hi, When building under Win32:- imclexer.c imcc/imclexer.c(13) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory NMAKE : fatal error U1077: 'F:\Perl\bin\perl.exe' : return code '0x2' Stop. Changing the line:- #include In imclexer.c to:- #include Allow

Parrot Documentation Review

2003-11-17 Thread Michael Scott
1) What is Parrot documentation? It seems to me that the problem presented by information about Parrot is that it exists in different layers and contexts. The presence of the docs directory in CVS is deceptive. It suggests that it's contents are in some way definitive. But, in practice, the do

Re: Proposal: parrot-compilers list

2003-11-17 Thread Joseph Ryan
Pete Lomax wrote: On Mon, 17 Nov 2003 11:35:51 -0800, Sterling Hughes <[EMAIL PROTECTED]> wrote: I think this would be a *very* cool thing. What he said. Ditto. - Joe

RE: thinking about variable context for like()

2003-11-17 Thread chromatic
On Mon, 2003-11-17 at 06:54, Potozniak, Andrew wrote: > What's stopping you from creating this global var > and passing it in to the function whenever it is called? Good taste. If it's going to be more convenient than Test::More's like(), go all the way and make it more convenient. > Or you cou

Re: thinking about variable context for like()

2003-11-17 Thread Rafael Garcia-Suarez
Chromatic wrote in perl.qa : > On Mon, 2003-11-17 at 06:54, Potozniak, Andrew wrote: > >> What's stopping you from creating this global var >> and passing it in to the function whenever it is called? > > Good taste. If it's going to be more convenient than Test::More's > like(), go all the way a

Re: Refactoring a test program: advice sought

2003-11-17 Thread Dave Rolsky
On Mon, 17 Nov 2003, darren chamberlain wrote: > * Andrew Savige [2003-11-15 14:51]: > > I took a quick look a mod_perl and Template Toolkit (TT). > > TT has a: > > lib/Template/Test.pm > > which looks wrong to me (should that not be under t/lib instead?). > > Template::Test contains a bunch of

Re: thinking about variable context for like()

2003-11-17 Thread Rafael Garcia-Suarez
FWIW, I uploaded Test::LongString 0.03 to CPAN. It implements like_string() and unlike_string(), and also : > (That's why I can imagine accepting the default length as an argument > to Test::LongString::import().)

Re: syntax: multi vs. method

2003-11-17 Thread Jonathan Lang
My apologies for the break in the chain of responses; I lost your reply before I could reply to it, and had to retrieve it from the list archives. Luke Palmer wrote: > Well, "multi" is no longer a declarator in its own right, but rather a > modifier. Synopsis & Exegesis 6 show this. I don't

This week's summary

2003-11-17 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 20031114 Evening all. Are you sitting comfortably? Then I'll begin. Undoubtedly, over the last week, some or all of the following happened: * Dan Sugalski thought about design, and maybe even nailed a few more things down. * Leo