Re: [CVS ci] exit opcode

2003-09-01 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > Those things are interpreter exceptions -- the program did something the > interpreter didn't expect. But I think the idea is to make C a > control exception, much like Perl 6's C or C. Yep & yep. C already is a (control) exception. > Luke leo

Re: [CVS ci] exit opcode

2003-08-31 Thread Leopold Toetsch
K Stol <[EMAIL PROTECTED]> wrote: > From: "Leopold Toetsch" <[EMAIL PROTECTED]> >> The C can happen deeply inside some called subs. The exception >> can be caught e.g. in main, to do some cleanup before really shutting >> down. Makes sense to me. > You've got a point there. But it's a bit a matt

Re: [CVS ci] exit opcode

2003-08-31 Thread Luke Palmer
K Stol writes: > From: "Leopold Toetsch" <[EMAIL PROTECTED]> > > The C can happen deeply inside some called subs. The exception > > can be caught e.g. in main, to do some cleanup before really shutting > > down. Makes sense to me. > > You've got a point there. But it's a bit a matter of taste I th

Re: [CVS ci] exit opcode

2003-08-31 Thread K Stol
- Original Message - From: "Jos Visser" <[EMAIL PROTECTED]> To: "Leopold Toetsch" <[EMAIL PROTECTED]> Cc: "P6I" <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 4:35 AM Subject: Re: [CVS ci] exit opcode > On Fri, Aug 29, 2003 at 01

Re: [CVS ci] exit opcode

2003-08-31 Thread K Stol
- Original Message - From: "Leopold Toetsch" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 7:43 AM Subject: Re: [CVS ci] exit opcode > K Stol <[EMAIL PROTECTED]> wrote:

Re: [CVS ci] exit opcode

2003-08-31 Thread Leopold Toetsch
K Stol <[EMAIL PROTECTED]> wrote: > From: "Leopold Toetsch" <[EMAIL PROTECTED]> >> .pcc_sub _main prototyped # only one "_main" allowed like in C > This is not *that* ugly, just look at C, for example. Any C program should > have a "main", so > it's not that strange to have a special 'purpose s

Re: [CVS ci] exit opcode

2003-08-31 Thread Leopold Toetsch
K Stol <[EMAIL PROTECTED]> wrote: > From: "Leopold Toetsch" <[EMAIL PROTECTED]> >> But with the constant Sub PMC in the packfile execution could start >> at "_main" then. > I couldn't follow the constant Sub PMC thread (didn't understand, maybe a > WTHI subject?). The PIR assembler inside Parrot

Re: [CVS ci] exit opcode

2003-08-31 Thread K Stol
- Original Message - From: "Leopold Toetsch" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 4:52 AM Subject: Re: [CVS ci] exit opcode > K Stol <

Re: [CVS ci] exit opcode

2003-08-31 Thread K Stol
- Original Message - From: "Leopold Toetsch" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 5:27 PM Subject: Re: [CVS ci] exit opcode > K Stol <[EMAIL PROTECTED]> wrote:

Re: [CVS ci] exit opcode

2003-08-31 Thread Leopold Toetsch
K Stol <[EMAIL PROTECTED]> wrote: > $I0 = 0# > .pcc_begin_return# > .return $I0; # return 0; /* return to > shell */ > .pcc_end_return # } > .end > Just an idea. Good one. So in "main"

Re: [CVS ci] exit opcode

2003-08-30 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > yOn Fri, 29 Aug 2003, Leopold Toetsch wrote: >> I have checked in a small change: >> - B(in INT) throws an exception with severity C and >> the given exit status. > I think we might want to go a little further than this, but it's fine for > now. We can ex

Re: [CVS ci] exit opcode

2003-08-29 Thread Leopold Toetsch
Brent Dax wrote: Leopold Toetsch: # I'd like to change the startup parameters too: move the ARGV array from # P0 to P5. Agreed on my end, at least--though I suspect the approval you really need is Dan's. I'll let you apply this when he does. Thanks. -interpreter->pmc_reg.registers[0] = user

Re: [CVS ci] exit opcode

2003-08-29 Thread Dan Sugalski
yOn Fri, 29 Aug 2003, Leopold Toetsch wrote: > I have checked in a small change: > - B(in INT) throws an exception with severity C and > the given exit status. I think we might want to go a little further than this, but it's fine for now. We can extend it with B(in PMC) later. > - the system i

RE: [CVS ci] exit opcode

2003-08-29 Thread Brent Dax
Leopold Toetsch: # I'd like to change the startup parameters too: move the ARGV array from # P0 to P5. Agreed on my end, at least--though I suspect the approval you really need is Dan's. I'll let you apply this when he does. --Brent Dax <[EMAIL PROTECTED]> Perl and Parrot hacker "Yeah, and my

Re: [CVS ci] exit opcode

2003-08-29 Thread Jos Visser
On Fri, Aug 29, 2003 at 01:29:18PM +0200 it came to pass that Leopold Toetsch wrote: > I'd like to change the startup parameters too: move the ARGV array from > P0 to P5. This would allow main to be: > > .pcc_sub _main prototyped >.param SArray ARGV >.local int ARGC >ARGC = ARGV >