Re: Exceptions

2003-06-27 Thread Dave Whipp
Luke Palmer wrote: So, maybe what's needed is a C catcher (C... eew), where C would throw an exception object with an attached continuation. And of course, if a warning reached the top of the stack without being caught, it would print itself and invoke its continuation. I thought I'd try and see

Tentative [PATCH]: valclone

2003-06-27 Thread Luke Palmer
Consider this Perl 6 code: sub refinc($var) { my $myvar = $var; $myvar += 1; } If you pass an integer in here, it should do nothing. However, if you pass an object with an overloaded += in, it should have the side-effect of adding one to that object. It's just a value/re

Re: Question about scoping, .local and IMCC (shorter)

2003-06-27 Thread Clinton Pierce
> Yeah, I don't think you can use .local across subs like that. I think > .local means "local to this sub" and *inner subs aren't closures*. In > fact, I don't think inner subs are useful for much of anything at all. The more I read, the more likely I think this is a bug. For example, the note

Re: Question about scoping, .local and IMCC (shorter)

2003-06-27 Thread Luke Palmer
> Sorry, the example was unnecessarily long. > > > After a quick reading of this, I'd have expected the value of "f" at the indicated > > point to be 1, but instead it's 2. > > .local int f > .sub _main > .local int x > .sub _foo1 > f=1 > x=2 >

Re: Test-Smoke questions

2003-06-27 Thread Abe Timmerman
Op een zonnige zomerdag (Friday 27 June 2003 20:26), schreef John Peacock: > Abe Timmerman wrote: > > T::S::S::Hardlink uses *all* of the source directory, so if you are using > > a working copy (under version control) the MANIFEST check will report all > > .svn stuff in the report. I'd use rsync

Re: Exceptions

2003-06-27 Thread Matt Fowles
Gordon Henriksen wrote: The most fundamental feature throwing an exception is that it transfers program execution from the call site. Allowing the caller to resume execution at that site is a very dangerous form of action at a distance. I think you'd be better off a giving the caller an explicit wa

Re: Question about scoping, .local and IMCC (shorter)

2003-06-27 Thread Clinton Pierce
Sorry, the example was unnecessarily long. > After a quick reading of this, I'd have expected the value of "f" at the indicated > point to be 1, but instead it's 2. .local int f .sub _main .local int x .sub _foo1 f=1 x=2 call _foo2

Question about scoping, .local and IMCC

2003-06-27 Thread Clinton Pierce
After a quick reading of this, I'd have expected the value of "f" at the indicated point to be 1, but instead it's 2. .local int f .sub _main .local int x .sub _foo1 f=1 x=2 call _foo2 end .end .sub _f

Re: Test-Smoke questions

2003-06-27 Thread John Peacock
Abe Timmerman wrote: T::S::S::Hardlink uses *all* of the source directory, so if you are using a working copy (under version control) the MANIFEST check will report all .svn stuff in the report. I'd use rsync on local directories (resulting in something like): rsync -a --delete --exclude '.svn

Re: Test-Smoke questions

2003-06-27 Thread Abe Timmerman
Op een zonnige zomerdag (Friday 27 June 2003 17:19), schreef John Peacock: > Now that I have a subversion repository of the APC (All Perl Changes) on a > machine that is largely unloaded, I can set up a smoke process nightly. In > order to do that, I have a couple of questions: > > 1) When runnin

Re: Test-Smoke questions

2003-06-27 Thread H.Merijn Brand
On Fri 27 Jun 2003 17:19, John Peacock <[EMAIL PROTECTED]> wrote: > Now that I have a subversion repository of the APC (All Perl Changes) on a > machine that is largely unloaded, I can set up a smoke process nightly. In > order to do that, I have a couple of questions: > > 1) When running `perl

Test-Smoke questions

2003-06-27 Thread John Peacock
Now that I have a subversion repository of the APC (All Perl Changes) on a machine that is largely unloaded, I can set up a smoke process nightly. In order to do that, I have a couple of questions: 1) When running `perl Makefile.pl` it asks me where to install the code; I'm guessing that this

Re: Exceptions

2003-06-27 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > This is more of a language thang, so I've redirected your message > there [here]. > >> The most fundamental feature throwing an exception is that it transfers >> program execution from the call site. Allowing the caller to resume >> execution at that site

Re: multi stack question/grumble

2003-06-27 Thread Leopold Toetsch
Dave Whipp <[EMAIL PROTECTED]> wrote: > C does do templates, sort-of: > #define STACK_TYPE int > #define STACK_MAX_SIZE 1024 > #include stack_template_decl.h > #include stack_template_impl.h > #undef STACK_TYPE > #undef STACK_MAX_SIZE > There can be some issues debugging this stuff though: And

Re: [perl #22823] test failed in t/pmc/io

2003-06-27 Thread Leopold Toetsch
Todd R Wade (via RT) wrote: Please read Subject: Timely destruction and TRACE_SYSTEM_AREAS Todd W. leo

[CVS ci] COW stacks by chunk

2003-06-27 Thread Leopold Toetsch
The 3 stacks using stacks.c (Control, Pad, and User) are now COWed per chunk. The main difference in stack usage caused by this change is: Its only safe to walk a stack from top down via the prev pointers. If we ever need to go up from base, marking a stack COW would need duplication of the lin

Re: Exceptions

2003-06-27 Thread Luke Palmer
This is more of a language thang, so I've redirected your message there [here]. > The most fundamental feature throwing an exception is that it transfers > program execution from the call site. Allowing the caller to resume > execution at that site is a very dangerous form of action at a distance.

RE: Exceptions

2003-06-27 Thread Gordon Henriksen
The most fundamental feature throwing an exception is that it transfers program execution from the call site. Allowing the caller to resume execution at that site is a very dangerous form of action at a distance. I think you'd be better off a giving the caller an explicit way to inhibit throwing a

Re: multi stack question/grumble

2003-06-27 Thread Dave Whipp
"Matt Fowles" <[EMAIL PROTECTED]> > Were this C++ I would say that we could write a single general purpose > stack and use template meta-programming to avoid the overhead. Is there > a similar solution available in C? > > My instincts tell me that this solution will be dirty to the tune of > massi

[perl #22823] test failed in t/pmc/io

2003-06-27 Thread via RT
# New Ticket Created by Todd R Wade # Please include the string: [perl #22823] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=22823 > Here is the result of the io tests and the test summary. Below that is the contents of .