help raise hell

2003-08-11 Thread Michal Wallace
Here is how I usually trigger a generic exception in python: >>> raise hell Traceback (most recent call last): File "", line 1, in ? NameError: name 'hell' is not defined Unfortunately, I can't seem to trap that in parrot, because a find_lex failure isn't an exception. Or am I

okay to use iterator?

2003-08-11 Thread Michal Wallace
perlhash.pod says: """ TODO: Steve Fink sayd: And if there were a keys() method, then 'defined' and 'exists' are very different. (And there ought to be, and would be if we weren't all ignoring Leo's iterator proposal.) I need to read that proposal :-) """ Looks like the proposal got acce

io_win32.c warnings

2003-08-11 Thread Vladimir Lipskiy
The attached patch removes these warnings: io/io_win32.c(312) : warning C4028: formal parameter 4 different from declaration io/io_win32.c(312) : warning C4029: declared formal parameter list different from definition io/io_win32.c(358) : warning C4113: 'long (__cdecl *)(struct Parrot_Interp *,str

Re: parrot bug: continuations/multiple return

2003-08-11 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> wrote: >> Leopold Toetsch <[EMAIL PROTECTED]> writes: >>> As calling conventions clearly state, that the caller has to save >>> everything, its probably up to imcc/pcc.c to insert above >>> statements, if another sub ge

Re: pcc_return problem

2003-08-11 Thread Leopold Toetsch
Togos <[EMAIL PROTECTED]> wrote: > I'm not sure if this is a bug in IMCC > or not, but I don't see the use of it, > and it's causing my program to segfault. > If I have more than one > .pcc_begin_return >.return x >.return y >etc > .pcc_end_return > block in a single compilation

Re: Packfile stuff

2003-08-11 Thread Juergen Boemmels
Index: KNOWN_ISSUES === RCS file: /cvs/public/parrot/KNOWN_ISSUES,v retrieving revision 1.8 diff -u -r1.8 KNOWN_ISSUES --- KNOWN_ISSUES 4 Feb 2003 10:24:45 - 1.8 +++ KNOWN_ISSUES 8 Aug 2003 16:09:11 - @@ -42,7 +42,6 @@ Utili

Re: We *need* this op! :-)

2003-08-11 Thread Nicholas Clark
On Fri, Aug 08, 2003 at 02:20:46AM -0400, David H. Adler wrote: > On Thu, Aug 07, 2003 at 12:57:11PM -0400, Gordon Henriksen wrote: > > This is really a language feature; you should add it to the hq9+ > > implementation. > > Sadly, this was not considered when hq9+ was developed, so it's not > act

why ~ for xor?

2003-08-11 Thread Michal Wallace
Out of curiosity, why does ~ map to both unary bitwise-not and binary bitwise-xor in imcc? I was expecting xor to be ^ and ^^ Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http:

Re: pirate status / need help with instances

2003-08-11 Thread Sean O'Rourke
Michal Wallace <[EMAIL PROTECTED]> writes: > Py-pirate can now handle: Cool... >* make parrotclass handle "invoke" > this strikes me as the most efficient, > but I'm not really confident with C > so I'm hesitant to try it This seems to me like the way to go, except you might

Re: configure.pl failed under cygwin, build failed on win32

2003-08-11 Thread Vladimir Lipskiy
# A note about building shared libraries: Perl5 uses the 'ld2' tool, which # is installed as part of the perl5 installation. So far, it appears # parrot can get by with simply using gcc -shared, so we override the # perl5 Configure defaults and use 'gcc -shared' instead of 'ld2'. # If this later

Re: parrot bug: continuations/multiple return

2003-08-11 Thread Leopold Toetsch
Benjamin Goldberg <[EMAIL PROTECTED]> wrote: > This is where .macro comes in handy :) >.macro lexical(name_in_pad, register_name) > local .register_name > find_lex .register_name, .name_in_pad >.endm Macros are currently enabled for PASM mode only. But there is no special rea

Re: This Week's Summary

2003-08-11 Thread Robert Spier
> >> list has been about fighting Subversion. However, Arthur did post a mini > >> status update at the end of July > >> http://xrl.us/o2s -- Status report > > > > I am having trouble following this url. Is there another? > > Ah... bugger. I thought ponie-dev got gatewayed through to

[perl #23276] Prefixing #define names

2003-08-11 Thread Vladimir Lipskiy
# New Ticket Created by "Vladimir Lipskiy" # Please include the string: [perl #23276] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=23276 > OK. I'm starting out a prefixing story and here is CHAPTER I. The HAS_HEADER_ def

Re: Packfile stuff

2003-08-11 Thread Juergen Boemmels
Simon Glover <[EMAIL PROTECTED]> writes: > > parrot_compiler: No make test: > > make fails with missing 'open_i_s' (integer file descriptors > > are removed) > > This is a two-line fix; I've already commited it. (It still doesn't > actually work, mind, as it makes Parrot seg

Re: This Week's Summary

2003-08-11 Thread Simon Glover
On Mon, 11 Aug 2003, Piers Cawley wrote: > Matt Fowles <[EMAIL PROTECTED]> writes: > > > Piers Cawley wrote: > >> I want a Ponie! > >> I promise that, as development of Ponie (the port of Perl 5 to Parrot) > >> accelerates you'll see a summary of Ponie activity in this summary as > >>

Re: [CVS ci] Exec

2003-08-11 Thread Daniel Grunblatt
On Friday 08 August 2003 14:16, Nicholas Clark wrote: > On Fri, Aug 08, 2003 at 01:48:17PM -0300, Daniel Grunblatt wrote: > > Now Exec works exactly like the jit, I have checked in the missing > > restart, fixed some bugs at Parrot_jit_store_retval and make exec_start > > call runops instead of cal

Re: assign opcodes

2003-08-11 Thread Benjamin Goldberg
Brent Dax wrote: > > TOGoS: > # Personally, I would like "=" to mean 'set', and > # maybe "<-" do 'assign'. > > I usually think of registers as variables with fixed names, so the Perl > 6 part of my brain suggests: > > $P0 = $P1 #assign > $P0 := $P1 #set Which is wh

Re: We *need* this op! :-)

2003-08-11 Thread David H. Adler
On Fri, Aug 08, 2003 at 12:33:03PM +0100, Nicholas Clark wrote: > On Fri, Aug 08, 2003 at 02:20:46AM -0400, David H. Adler wrote: > > On Thu, Aug 07, 2003 at 12:57:11PM -0400, Gordon Henriksen wrote: > > > This is really a language feature; you should add it to the hq9+ > > > implementation. > > >

Re: assign opcodes

2003-08-11 Thread TOGoS
> Anyway: > > assign Px, {Iy,Sy,Ny} > > are not needed IMHO, these end up as > set__native and are identical > to set Px, {Iy,Sy,Ny}. Yes, but as we were discussing in the Set vs. Assign thread, it makes more sense to call them 'assign', as it morphs the existing value (as 'assign Px, Py' does)

XGameStation

2003-08-11 Thread Ask Bjoern Hansen
We totally need to have Parrot running on this thing when it comes out. :-) http://www.xgamestation.com/ - ask -- ask bjoern hansen, http://www.askbjoernhansen.com/ !try; do();

IMCC hangs

2003-08-11 Thread TOGoS
This code causes IMCC to hang: .pcc_sub _main non_prototyped newsub $P5, .Sub, _ags_3 $P4 = new PerlString $P4 = "foobar!" newsub P1, .Continuation, agl_1 .pcc_begin non_prototyped .arg $P4 .pcc_call $P5, P1 agl_1: .result $P6 .pcc_end end .end