Compile op with return values

2004-08-21 Thread Steve Fink
I am experimenting with registering my own compiler for the "regex" language, but the usage is confusing. It seems that the intention is that compilers will return a code object that gets invoked, at which time it runs until it hits an C opcode. But what if I want to return some values from the com

Re: "<->" as "->" with automatic "is rw"

2004-08-21 Thread Jonadab the Unsightly One
Juerd <[EMAIL PROTECTED]> writes: > Sick would be if <- were introduced to make the variable write-only ;) Sicker still would be if - were introduced to make the variable neither readable nor writeable. HTH.HAND. -- $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,"[EMAIL PROTECT

Re: Extending interface: PMC flags and marking

2004-08-21 Thread Dan Sugalski
At 6:44 PM +0200 8/21/04, Mattia Barbon wrote: Hello, I think extenders should have access to at least some of the flags in PObj_enum. Should we have a different function for each flag (say: Parrot_PObj_set_custom_mark(INTERP, PMC, value), Parrot_PObj_set_is_class(INTERP, PMC, value) or a single

[perl #31270] [PATCH] add test for op 'does'

2004-08-21 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #31270] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31270 > Hi, I have been adding tests for the op 'does' in most of the PMC test files

Re: Updates to modules-related pod

2004-08-21 Thread Randal L. Schwartz
> "mAsterdam" == mAsterdam <[EMAIL PROTECTED]> writes: mAsterdam> Reading the thread I was reminded of the mAsterdam> unclarity of the status of perl newsgroups. mAsterdam> You advised Rafael Garcia-Suarez to either use a group mAsterdam> (c.l.p.announce) or to entertain a proposal to cancel

Extending interface: PMC flags and marking

2004-08-21 Thread Mattia Barbon
Hello, I think extenders should have access to at least some of the flags in PObj_enum. Should we have a different function for each flag (say: Parrot_PObj_set_custom_mark(INTERP, PMC, value), Parrot_PObj_set_is_class(INTERP, PMC, value) or a single Parrot_PObj_set_flag(INTERP, PMC, flag, value)

Re: A thought for later -- POD tables

2004-08-21 Thread Aaron Sherman
Luke Palmer wrote: On the other hand, Larry had a good point. Why couldn't we do: =begin table ... =end table For some sufficiently simple ...? Obviously this gives the formatter control over how the table is formatted, which is arguably a bad thing since it won't be implemented (POD tools are mo

[perl #31269] [PATCH] More packgile dixes

2004-08-21 Thread via RT
# New Ticket Created by Mattia Barbon # Please include the string: [perl #31269] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31269 > Hello, this patch fixes some problems with previous week's patch: it allowed loadi

[perl #31268] [PATCH] Dynamic library with multiple PMCs

2004-08-21 Thread via RT
# New Ticket Created by Mattia Barbon # Please include the string: [perl #31268] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31268 > Hello, as promised with this patch: pmc2c2 ... --library foo --c pmc1.pmc pmc

Calling conventions for unprototyped subroutines?

2004-08-21 Thread Mattia Barbon
Hello, crrently argument count is passed in I3. A comment in untils.c near foldup says that: TODO - IMCC and PDD 3 aren't yet in conformance. This uses the current IMCC setup, but should be changed as soon as IMCC modified to the correct calling conventions. while pdd03 says: .

Re: A thought for later -- POD tables

2004-08-21 Thread Peter Scott
Maybe this train has already left the station, but I find myself preferring Kwiki syntax to POD these days... any chance we could use Kwiki with WAFL for the Perl 6 POD? That of course has already got tables. (Still bracketing with the =for ... =cut directives, though.) Just a thought... -- Pet

Re: Synopsis 2 draft 1 -- each and every

2004-08-21 Thread Luke Palmer
David Green writes: > On 8/20/04, [EMAIL PROTECTED] (Luke Palmer) wrote: > >So all the laziness goes into the array implementation. But you don't > >even need to write your iterator fancily. If you just write your scalar > >version of postcircumfix:<>, Perl will do the rest. > > So if you use an

Re: A thought for later -- POD tables

2004-08-21 Thread Luke Palmer
Aaron Sherman writes: > Also, you pointed out that my example was hard to read, but you only > pointed out the particularly complex example (where I WANTED to > demonstrate all of the complex cases), not the simple one. The general > case would probably look like: > >H< Function | Returns >

Re: [perl #31197] literal.t

2004-08-21 Thread mAsterdam
Hm I should have run the test before I replied. I removed the negatives. Unfortunately the uppercased literals yield 0 instead of 42. use Parrot::Test tests => 1; output_is(<<'CODE', <<'OUTPUT', "integer literals"); print 0x2A print "\n" print 0X2A print "\n"

Re: Return with no expression

2004-08-21 Thread Uri Guttman
> "AS" == Aaron Sherman <[EMAIL PROTECTED]> writes: AS> Matthew Walton wrote: >> Larry Wall wrote: >> >>> I suspect there's an argument that [0,0) ought to be considered undef >>> (which would conveniently numerify to 0 with an optional warning). >> >> In the absence of a parad

Re: Return with no expression

2004-08-21 Thread Aaron Sherman
Matthew Walton wrote: Larry Wall wrote: I suspect there's an argument that [0,0) ought to be considered undef (which would conveniently numerify to 0 with an optional warning). In the absence of a paradox value, undef would be fine there I think :-) Too bad we don't have NaRN (Not a Random Number).

Re: A thought for later -- POD tables

2004-08-21 Thread Aaron Sherman
Luke Palmer wrote: Aaron Sherman writes: <> H< C<$_> | C<$x> | Type of Match Implied | Matching Code > T< Any | CodeC<< <$> >> | scalar sub truth | match if C<$x($_)> > Oh, and BTW: My mailer seems to have snuck some extra noise in there. I think it got confused and tho

Re: Return with no expression

2004-08-21 Thread Matthew Walton
Larry Wall wrote: On Fri, Aug 20, 2004 at 09:21:02AM +0100, Matthew Walton wrote: : It would be nice if rand behaved a bit more sanely in Perl 6. I can : understand the reasoning for making rand 0 produce between 0 and 1, but : that doesn't mean I have to like it. What makes you think there was

Re: Updates to modules-related pod

2004-08-21 Thread mAsterdam
Randal L. Schwartz wrote: mAsterdam writes: Randal L. Schwartz wrote: Rafael Garcia-Suarez wrote: BTW, isn't the habit to post to c.l.p.announce a bit deprecated now ? Not at all. More people should do it. Don't remove it. Either that, or entertain a proposal to cancel the group. mAsterdam> Whi

Re: "<->" as "->" with automatic "is rw"

2004-08-21 Thread Juerd
Larry Wall skribis 2004-08-20 13:31 (-0700): > Unfortunately I'm not sure it passes the "Are there already too many > ways to declare a sub?" test... I'm not seeing it as another way. Technically, of course it is different, but by the user, <-> and -> will probably be seen as one thing, with one o

Re: A thought for later -- POD tables

2004-08-21 Thread Juerd
> > $_ $xType of Match ImpliedMatching Code > > == = == > > Any Code<$> scalar sub truth match if $x($_) How about making paragraphs that have a line like the divider one above special? By simply parsing the

Re: Synopsis 2 draft 1 -- each and every

2004-08-21 Thread David Green
On 8/20/04, [EMAIL PROTECTED] (Luke Palmer) wrote: >So all the laziness goes into the array implementation. But you don't >even need to write your iterator fancily. If you just write your scalar >version of postcircumfix:<>, Perl will do the rest. So if you use an iterator in list context, Perl

[perl #31260] CVS fails to build on ia64-linux

2004-08-21 Thread via RT
# New Ticket Created by Duraid Madina # Please include the string: [perl #31260] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31260 > --- osname= linux osvers= 2.4.25-dsa-itanium-smp arch= ia64-linux-thread-multi cc=

Re: "<->" as "->" with automatic "is rw"

2004-08-21 Thread Adam D. Lopresto
On Fri, 20 Aug 2004, Larry Wall wrote: > On Fri, Aug 20, 2004 at 10:07:02PM +0200, Juerd wrote: > : I'm proposing > : > : for zip(@foos, @bars, @xyzzies) <-> $foo, $bar, $xyzzy { ... } > : for %quux.kv <-> $key, $value { ... } > > That'd probably work on the keys only if the hash was decla

Re: Synopsis 2 draft 1 -- each and every

2004-08-21 Thread Adam D. Lopresto
On Fri, 20 Aug 2004, Dan Hursh wrote: > Peter Behroozi wrote: > > > I'm not particular to any of the verbs used yet, but maybe that's > > because I don't think of the <> as a general iterator, but more of a > > gobbler-type creature (and formerly a globber, too). Could we try: > > > > for $foo.fe

Re: Updates to modules-related pod

2004-08-21 Thread Randal L. Schwartz
> "mAsterdam" == mAsterdam <[EMAIL PROTECTED]> writes: mAsterdam> Randal L. Schwartz wrote: >>> BTW, isn't the habit to post to c.l.p.announce a bit deprecated now ? >> Not at all. More people should do it. Don't remove it. >> Either that, or entertain a proposal to cancel the group. mAs

Re: incremental garbage collection 1/2

2004-08-21 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 9:48 PM +0200 8/20/04, Leopold Toetsch wrote: >>0) Parrot's nomenclature DOD vs GC is a bit misleading. The "DOD" >>subsystem is the stop-the-world mark & sweep collector that recycles >>object headers. The "GC" is the copying collector for variable size

Re: [PATCH] Re: [perl #31128] Infinite loop in key_string

2004-08-21 Thread Leopold Toetsch
Steve Fink wrote: ... For PerlHash, P0["foo";3] seems to be interpreted as an iterator access? I hope there's some other way of indicating that. Yep, KEY_integer_FLAG used to indicate, get me the next key and is used by the iterator. But as your test shows its ambiguous. We are already allowing

Re: incremental garbage collection 1/2

2004-08-21 Thread Leopold Toetsch
André Pang <[EMAIL PROTECTED]> wrote: > On 21/08/2004, at 5:48 AM, Leopold Toetsch wrote: >> 3) The copying collector isn't integrated yet. But that should be easy. >> After finishing sweep and if there is some possible wastage in the >> memory pools, these get compacted. > I thought Parrot wasn'

Re: A thought for later -- POD tables

2004-08-21 Thread Aaron Sherman
L:uke, just a note before I reply to you specifically: I understand your concerns, and I have no interest in blurring the line between presentation and markup, which I think ultimately is where your concern comes from. In fact, if you re-read what I wrote (and what I write below), you'll see th