[PUGS][PATCH] Tests for anon subs and blocks

2005-02-22 Thread Stevan Little
Hello, Another new test. This one just tests that basic anon subs and blocks work correctly. Nothing all that special really, just 3 simple tests. Again, if there are any issues, let me know. Thanks, - Stevan anon_block.t Description: Binary data

[PUGS][PATCH] Patch for t/op/join.t

2005-02-22 Thread Stevan Little
Hello all, I have attached a patch for t/op/join.t, it adds 2 failing (TODO) tests and 3 passing tests (for a total of 6). It attempts to cover all of the basic variants of using join(). Let me know if there is any issues. Thanks, - Stevan t_op_join.patch Description: Binary data

[PUGS][PATCH] Patch for t/op/not.t

2005-02-22 Thread Steve Peters
Attached is a patch for t/op/not.t. This is a nearly direct port of the t/op/not.t in bleadperl. Missing though is a comparison against a boolianized undef, which I don't know if it exists in Perl 6 or not. Enjoy! Steve Peters [EMAIL PROTECTED] --- /dev/null 2005-02-19 03:47:20.626125536 -0

Perl 6 Summary for 2005-02-08 through 2005-02-22

2005-02-22 Thread Matt Fowles
Perl 6 Summary for 2005-02-08 through 2005-02-22 All~ Welcome to yet another fortnight summary. Lately p6l has been out stripping p6i in volume. While this used to be the norm, lately it has become a rare occurrence. Strange... Anyway, this summary would be brought to you buy c

[PATCH] set of tests for 'for'

2005-02-22 Thread Stevan Little
Hello all & Autrijus, I managed to get some time today to hack out some tests for PUGS. The attached file contains a number of test for 'for'. I based these test on what I read in the Exegesis 4 (http://www.perl.com/lpt/a/2002/04/01/exegesis4.html) about how 'for' should work. A number of the t

[PUGS] [PATCH] Tests for closure bug, and die bugs

2005-02-22 Thread Benjamin Smith
This patch adds a test to t/06sub.t to check that a closure returned by a subroutine can find the variable that it is closed on. But in writing this test I found that "if (die 'foo') { }" doesn't die, so a test for that has been added to t/base/if.t. And finally "my $foo; eval '$foo = die "bool"'

Re: Environment variables

2005-02-22 Thread Autrijus Tang
On Tue, Feb 22, 2005 at 04:17:53PM +0100, Rafael Garcia-Suarez wrote: > Here's a patch to add this. It's heavily cargo-culted, I need to read > some docs about haskell some day. As I wasn't able to get FiniteMaps to > work I implemented my own kludgy function to flatten pairs for the hash. > Also I

Re: Environment variables

2005-02-22 Thread Rafael Garcia-Suarez
Autrijus Tang wrote: > jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > > I had this silly idea, to try to add %ENV to pugs. That would be an > > interesting exercise. So I can write CGI scripts. Maybe. But I don't > > know what's the Right way to do it in Perl 6. Any hints ?

Re: [PATCH] Additional tests for t/op/pair.t

2005-02-22 Thread Autrijus Tang
On Mon, Feb 21, 2005 at 11:05:34PM -0600, Steve Peters wrote: > I was hoping I had a bit more time tonight to work on tests, but house-hacking > projects took precedence. Attached is a patch to t/op/pair.t to add some > additional tests to make sure values of numbers and pairs can be handled as >

Re: Environment variables

2005-02-22 Thread Autrijus Tang
On Tue, Feb 22, 2005 at 06:51:24AM -0600, Patrick R. Michaud wrote: > This might initially work for read-only access/testing, but in > the long run I suspect that %*ENV will be tied directly to the > C putenv/getenv calls or their Parrot/other equivalents. > Assigning to %*ENV should change the e

Re: Environment variables

2005-02-22 Thread Patrick R. Michaud
On Tue, Feb 22, 2005 at 08:35:49PM +0800, Autrijus Tang wrote: > jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > > I had this silly idea, to try to add %ENV to pugs. That would be an > > interesting exercise. So I can write CGI scripts. Maybe. But I don't > > know what's the

Re: Environment variables

2005-02-22 Thread Autrijus Tang
jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > I had this silly idea, to try to add %ENV to pugs. That would be an > interesting exercise. So I can write CGI scripts. Maybe. But I don't > know what's the Right way to do it in Perl 6. Any hints ? In Perl6 I think you do it

[PATCH] Additional tests for t/op/pair.t

2005-02-22 Thread Steve Peters
Hi all, I was hoping I had a bit more time tonight to work on tests, but house-hacking projects took precedence. Attached is a patch to t/op/pair.t to add some additional tests to make sure values of numbers and pairs can be handled as well as using a pair as a key for a pair. The test script a

Environment variables

2005-02-22 Thread Rafael Garcia-Suarez
I had this silly idea, to try to add %ENV to pugs. That would be an interesting exercise. So I can write CGI scripts. Maybe. But I don't know what's the Right way to do it in Perl 6. Any hints ? -- #!/usr/bin/pugs say "Just another Pugs hacker";