Re: Some PIR "How do I?" questions

2003-11-24 Thread Melvin Smith
At 07:18 PM 11/24/2003 +0100, Jerome Quelin wrote: Dan Sugalski wrote: > On Mon, 24 Nov 2003, Jerome Quelin wrote: > > * How does one launch an exception? trap an exception? > > * How does one create a class? instanciate an object? > With the exception of the second bullet item, these are generic >

Re: Some PIR "How do I?" questions

2003-11-24 Thread Melvin Smith
At 06:49 PM 11/24/2003 +0100, Jerome Quelin wrote: Jerome Quelin wrote: > Melvin Smith wrote: > > I just checked in an intial IMCC faq (parrot/imcc/docs/imcfaq.pod) > Great job. Attached you'll find some corrections for typos. And of course I forgot the patch file. Here it is. Thanks, applied! Als

Re: Freezing and thawing

2003-11-24 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > On Mon, 24 Nov 2003, Leopold Toetsch wrote: >> In the mean time I've checked in freeze/thaw for PerlHash. It uses an >> element count as list does. We could of course use your proposed scheme > ^ > You mis-spelled "will

Re: Some PIR "How do I?" questions

2003-11-24 Thread Jerome Quelin
Dan Sugalski wrote: > On Mon, 24 Nov 2003, Jerome Quelin wrote: > > * How does one retrieve arguments given on the command-line? > > * How does one call a function? With arguments? With a variable > > number of arguments? Get the return value(s) of a sub? > > * How does one read from a file? stdin?

Re: Some PIR "How do I?" questions

2003-11-24 Thread Dan Sugalski
On Mon, 24 Nov 2003, Jerome Quelin wrote: > Ok, here are some more (some questions are easy - but a faq should also > have some easy items -, others are not yet possible, but anyway): > > * How does one retrieve arguments given on the command-line? > * How does one call a function? With arguments?

Re: Some PIR "How do I?" questions

2003-11-24 Thread Melvin Smith
At 06:48 PM 11/24/2003 +0100, Jerome Quelin wrote: Melvin Smith wrote: > I just checked in an intial IMCC faq (parrot/imcc/docs/imcfaq.pod) Great job. Attached you'll find some corrections for typos. Thanks. BTW Robert has linked the HTML FAQ to the site. You can get to it from the Resources tab, o

Re: Freezing and thawing

2003-11-24 Thread Dan Sugalski
On Mon, 24 Nov 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > >> > startpairs(name) > >> > endpairs(name) > > > start/end pairs does the same thing, only what gets frozen is a series of > > pairs (key/value things) rather than individual entries. And yes, I > > realize

Re: Some PIR "How do I?" questions

2003-11-24 Thread Jerome Quelin
Jerome Quelin wrote: > Melvin Smith wrote: > > I just checked in an intial IMCC faq (parrot/imcc/docs/imcfaq.pod) > Great job. Attached you'll find some corrections for typos. And of course I forgot the patch file. Here it is. Jerome -- [EMAIL PROTECTED] Index: imcfaq.pod ===

Re: Some PIR "How do I?" questions

2003-11-24 Thread Jerome Quelin
Melvin Smith wrote: > I just checked in an intial IMCC faq (parrot/imcc/docs/imcfaq.pod) Great job. Attached you'll find some corrections for typos. > The FAQ is small, but it at least answers all of the above. As I see it, the faq will grow fast... Maybe we'll have to split it in different pa

Re: Freezing and thawing

2003-11-24 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: >> > startpairs(name) >> > endpairs(name) > start/end pairs does the same thing, only what gets frozen is a series of > pairs (key/value things) rather than individual entries. And yes, I > realize that you can simulate pairs with alternating key/value entr

Re: PIO_eof

2003-11-24 Thread Melvin Smith
At 11:45 AM 11/24/2003 +0300, Vladimir Lipsky wrote: Hi everyone! In t/src/io.c, specifically test 9 and 10, I wonder if the PIO_eof check up works anywhere; because I didn't manage to find any place where the PIO_F_EOF flag is set up when the PIO_*_open function fails neither in io_stdio.c, io_un

Re: Some random remarks

2003-11-24 Thread Dan Sugalski
On Mon, 24 Nov 2003, Juergen Boemmels wrote: > I like the basic idea of having different random number > generators. But having only the integer valued level seems a little > bit problematic to me. Its not easy extendable if you have some > special needs on the random number generator. > > So I pr

Re: Some random remarks

2003-11-24 Thread Juergen Boemmels
Matt Fowles <[EMAIL PROTECTED]> writes: > 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. The modulus/addition trick is very comm

Re: New Example

2003-11-24 Thread Leopold Toetsch
Jonathan Worthington wrote: Done and attached. Thanks, checked in. Jonathan leo

Re: Freezing and thawing

2003-11-24 Thread Dan Sugalski
On Fri, 21 Nov 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > 5) The vtable API > > [ ... ] > > > thawfinish() > > This is very probably necessary to perform some final state adjustemnt, > when all the contained PMCs are done but not as a general "to be > called on ea

Re: Win32 building

2003-11-24 Thread Jonathan Worthington
- Original Message - From: "Vladimir Lipsky" <[EMAIL PROTECTED]> To: "perl6-internals" <[EMAIL PROTECTED]> Sent: Monday, November 24, 2003 6:16 AM Subject: Win32 building > D:\build\parrot>nmake > ... > d:\build\parrot\src\encoding.c(39) : warning C4090: 'function' : different > 'const'

PIO_eof

2003-11-24 Thread Vladimir Lipsky
Hi everyone! In t/src/io.c, specifically test 9 and 10, I wonder if the PIO_eof check up works anywhere; because I didn't manage to find any place where the PIO_F_EOF flag is set up when the PIO_*_open function fails neither in io_stdio.c, io_unix.c nor io_win32.c Is the "io == NULL" testing proh

Re: Some PIR "How do I?" questions

2003-11-24 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) *) How do I declare an externally visible subroutine? *) How do I store a global variable