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
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
- 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'
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
Jonathan Worthington wrote:
Done and attached.
Thanks, checked in.
Jonathan
leo
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
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
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
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
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
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
===
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
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
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?
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?
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
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
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
>
Damian Conway writes:
> Hmm. I think I may have missed Luke's point. Which was (presumably):
> what if C<$opus.write_to_file($file);> validly returns C?
>
> In which case I think we just fall back to:
>
> try{$opus.write_to_file($file); CATCH {die "Couldn't write to $file:
> $!"}}
>
Honestly you guys, I'm not trolling. I'm just getting a lot of ideas
recently. :-)
The C comma has always bugged me, but its function is indeed useful
(many times I use C in its place, if I know the left side will
always be true). I don't know whether it's staying or not (I've heard
rumors of bot
On Mon, Nov 24, 2003 at 05:00:38PM -0700, Luke Palmer wrote:
> The C comma has always bugged me, but its function is indeed useful
> (many times I use C in its place, if I know the left side will
> always be true). I don't know whether it's staying or not (I've heard
> rumors of both), but I'd sugg
> Honestly you guys, I'm not trolling. I'm just getting a lot of ideas
> recently. :-)
Honestly, I'm not an expert on Perl 6 syntax. (And I actually am being
honest... ;-) But I'll throw in my 2 cents anyway. :-)
>
>
> This word: C.
>
> So, from a recent script of mine:
>
> my $n;
>
At 04:40 PM 11/24/2003 -0800, Michael G Schwern wrote:
I definately agree that this is used rarely enough that it should be a word
and not a single character.
"then" sounds too much like "if/then" which is confusing. Its exactly
the opposite from what you're trying to convey.
It also doesn't conve
I'm very much in favour of heteronymifying scalar vs list comma too.
Or else eliminating one of them.
Schwern wrote:
"then" sounds too much like "if/then" which is confusing.
Why? "if/then" has never been Perl syntax.
It also doesn't convey anything about "evaluate the left hand side, ignore
th
Luke --
I guess it might be nice to just do that with a block...
my $n;
while { $n++; @accum } < $total {
...;
}
since we already have a nice do-this-then-do-this syntax.
Sure, it looks a little weird in a for loop:
for ($i = 0; $i < $X; { $i++; some_func() }) {
...;
}
but
On Tue, Nov 25, 2003 at 12:21:13PM +1100, Damian Conway wrote:
> >"then" sounds too much like "if/then" which is confusing.
>
> Why? "if/then" has never been Perl syntax.
A lot of people read "if (foo) { bar }" as "if foo then bar" in their heads.
I'm one of them. Its not a previous syntax thing
Schwern observed:
A lot of people read "if (foo) { bar }" as "if foo then bar" in their heads.
I'm one of them. Its not a previous syntax thing, its a translation to
English thing.
Fair enough. It's not something I do myself, but I can see that many people
might prefer to.
This may be a conseq
27 matches
Mail list logo