Re: C outside of C

2006-09-07 Thread Trey Harris
In a message dated Thu, 7 Sep 2006, Mark Stosberg writes: To refine this point a bit, the spec is clear that 'when' is useful not just with 'given' but with "any block that sets $_". Thanks, I was not being terribly precice when I conflated when with given. Of course, CATCH is another case whe

CATCH: changing the topic and preserving the call stack

2006-09-07 Thread Mark Stosberg
I'll hold up some error handling in CGI::Application as "use case" some for some CATCH spec refinements. The Perl 5 code is below for reference. First, we handle the exception conditionally based /not/ on the exception itself, but whether we have an exception handle installed to deal with it. Is i

Re: C outside of C

2006-09-07 Thread Mark J. Reed
On 9/7/06, Mark Stosberg <[EMAIL PROTECTED]> wrote: To refine this point a bit, the spec is clear that 'when' is useful not just with 'given' but with "any block that sets $_". I agree that it should be an error outside of "any block that sets $_", I disagree. I don't see aproblem with havi

Re: C outside of C

2006-09-07 Thread Mark Stosberg
Trey Harris wrote: > markstos++ pointed out the following behavior: > > use v6-alpha; > > { > when 1 ~~ 0 { > say "Surprise!" > } > } > > This code prints "Surprise!", because $_ is undef, which is false, just > like 1 ~~ 0 is. > > I'd like to make the following suggestions

C outside of C

2006-09-07 Thread Trey Harris
markstos++ pointed out the following behavior: use v6-alpha; { when 1 ~~ 0 { say "Surprise!" } } This code prints "Surprise!", because $_ is undef, which is false, just like 1 ~~ 0 is. I'd like to make the following suggestions for Synopsis clarification: 1. It will be a

Re: [perl #40292] [TODO] Add JSON tests

2006-09-07 Thread Nuno Carvalho
Hi all, I haded some more tests to t/compilers/json/to_parrot.t file to test some objects/array combinations. All tests pass at this point, except for tests: #17 - something about null value in a array #25 - just added that random sequence, it does not parse not quite sure why. Attached to this

Re: [perl #40299] [PATCH] Added readdir() function to os.pmc

2006-09-07 Thread Leopold Toetsch
Am Donnerstag, 7. September 2006 20:20 schrieb Kay-Uwe Huell: > needed a readdir() function, which I have implemented in os.pmc (for > POSIX compliant systems). Here is the patch. Great, thanks applied as r14480. leo

[perl #40299] [PATCH] Added readdir() function to os.pmc

2006-09-07 Thread via RT
# New Ticket Created by Kay-Uwe Huell # Please include the string: [perl #40299] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40299 > Hi parrot-team, needed a readdir() function, which I have implemented in os.pmc (for

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

2006-09-07 Thread audreyt
Author: audreyt Date: Thu Sep 7 07:07:43 2006 New Revision: 11817 Modified: doc/trunk/design/syn/S04.pod Log: 16:06 < agentzh> audreyt: could you fix the "modifer" typo in S04 for me? :) Modified: doc/trunk/design/syn/S04.pod ==

Re: NEXT and the general loop statement

2006-09-07 Thread Agent Zhang
On 8/17/06, Larry Wall <[EMAIL PROTECTED]> wrote: I'd say 01234 on the theory that the 3-arg loop is really saying: $n = 0; while $n < 5 { NEXT { ++$n } NEXT { print $n } } and also on the theory that block exiting blocks always run in reverse order. Dear Larry,

Re: select / PIO_unix_poll / IO event

2006-09-07 Thread Leopold Toetsch
Am Mittwoch, 6. September 2006 16:38 schrieb Leopold Toetsch: > 2) The event system > > It's not toatally ready to use it for waiting on file descriptors, but most > is already there. > > A minimal interface could be: > >   event_add_IO_event(Interp, PMC* pio, PMC *sub, PMC *user_data, int which) >

Re: (Non)shared interpreter data

2006-09-07 Thread Leopold Toetsch
Am Donnerstag, 7. September 2006 01:45 schrieben Sie: > What about continuations? On one hand, they are used for flow control, > on the second they are data like any other. As you can't use a Continuation to continue in a different thread or interpreter, these ought to be really non-shared. If a