Re: Warning patrol

2003-11-22 Thread Leopold Toetsch
Jonathan Worthington [EMAIL PROTECTED] wrote: In the spirit of this, I attach a couple of patches that clear up some of the many warnings on Win32. Thanks, applied. Jonathan leo

Re: Some PIR How do I? questions

2003-11-22 Thread Sterling Hughes
Dan Sugalski wrote: These could use some documenting (and yes, I know the answer to many) for future use for folks generating PIR. (Hint, hint -- documentation is a good thing) *) How do I declare an externally visible subroutine? *) How do I store a global variable *) How do I load a global

Re: Warning patrol

2003-11-22 Thread Leopold Toetsch
Juergen Boemmels [EMAIL PROTECTED] wrote: Only a few fixes in imcc are needed to compile warning-free, most of them are unused parameters and variables. Applied. Thanks, bye b=F6 leo

Bytecode portability and word/int sizes

2003-11-22 Thread Melvin Smith
At 12:13 PM 11/22/2003 +, you wrote: * write intval size into PBC header Leo, I know this is a first cut at freeze/thaw, and I'm happy you've done it. Let me make some comments to you and Dan. I'm pretty sure Dan and I discussed this when I was reworking bytecode to be portable last year,

Re: Some PIR How do I? questions

2003-11-22 Thread Melvin Smith
At 03:18 PM 11/21/2003 -0500, Dan Sugalski wrote: These could use some documenting (and yes, I know the answer to many) for future use for folks generating PIR. (Hint, hint -- documentation is a good thing) I will make an attempt at answering all of these regarding how it is today, as opposed to

Re: Some random remarks

2003-11-22 Thread Matt Fowles
All~ We could try to keep the opcode count down by simply having a seed opcode and an opcode to produce n random bytes... Anyone who wants more specific ranges could do the modulus and addition themselves. Matt Leopold Toetsch wrote: Almost forgotten about that, but I've checked in some days

Re: s/// in string context should return the string

2003-11-22 Thread David Chan
[EMAIL PROTECTED] wrote: Smylers wrote: This, however, is irritating: my @new = map { s:e/$pattern/$replacement/; $_ } @old; So I'd like a more elegant way of writing that -- but I don't think making the return value of Cs/// more complicated (and duplicating data in the process) would

Re: s/// in string context should return the string

2003-11-22 Thread Luke Palmer
David Chan writes: Hmmm. When doing multiple substitutions, it would be nice to avoid a hard-to-read nested function call which reads backwards, a la python: return re.sub('','gt;',re.sub('','lt;',re.sub('','amp;',text))) ... but to also avoid multiple statements like this: my $tmp

Re: Bytecode portability and word/int sizes

2003-11-22 Thread Leopold Toetsch
Melvin Smith [EMAIL PROTECTED] wrote: Parrot currently assumes INTVAL size == OPCODE size because both get configured as the same integral type, although you can choose to override it, it is not supported to choose INTVAL OPCODE, though the inverse is. So storing it in the header is probably

Re: New Example

2003-11-22 Thread Jonathan Worthington
From: Leopold Toetsch [EMAIL PROTECTED] Jonathan Worthington wrote: Hi, I've attached an example of calling a Win32 API using NCI. Could you please rework it to use the .pcc_begin/.nci_call interface (s. library/libpcre.imc for an example) Done and attached. Jonathan win32.imc

Re: Bytecode portability and word/int sizes

2003-11-22 Thread Melvin Smith
At 11:34 PM 11/22/2003 +0100, Leopold Toetsch wrote: Melvin Smith [EMAIL PROTECTED] wrote: Parrot currently assumes INTVAL size == OPCODE size because both get configured as the same integral type, although you can choose to override it, it is not supported to choose INTVAL OPCODE, though

Re: Bytecode portability and word/int sizes

2003-11-22 Thread Melvin Smith
At 10:14 PM 11/22/2003 -0500, Melvin Smith wrote: At 11:34 PM 11/22/2003 +0100, Leopold Toetsch wrote: Melvin Smith [EMAIL PROTECTED] wrote: to override it, it is not supported to choose INTVAL OPCODE, though the inverse is. So storing it in the header is probably redundant, unless we change