Re: [svn:parrot] r21807 - in branches/reconfigure: . t/configure

2007-10-04 Thread James E Keenan
On Oct 4, 2007, at 12:30 AM, chromatic wrote: On Wednesday 03 October 2007 20:06:01 [EMAIL PROTECTED] wrote: When I first began to write tests for the packages underlying or used by Configure.pl, I figured it would be best to try to mimic Configure.pl's operation as closely as possible i

pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Patrick R. Michaud
When looking at a trace output (-t1), what's the difference between "PMCNULL" and "(null)"? For example: $ cat y.pir .namespace ['Foo'] .sub main :main $P1 = get_class ['Foo'] $P2 = $P1 $P0 = get_hll_namespace ['Foo'] $P1 = get_class $P0 $P2 = $P1 .end

pdd15oo: How do I create a dynamically named class?

2007-10-04 Thread Patrick R. Michaud
How does one create a new class with a name determined dynamically at runtime? For example, suppose I have a string like 'PGE::Perl6Grammar', and from that I want to create a ['PGE';'Perl6Grammar'] class. The code $ cat z1.pir .sub main :main $S0 = 'PGE::Perl6Grammar' $P0

Re: Some feedbacks from Lua experience

2007-10-04 Thread Francois PERRAD
At 23:48 03/10/2007 -0700, chromatic wrote: On Wednesday 03 October 2007 12:55:54 François PERRAD wrote: > 3) garbage collection > How write code without GC problems ? > How track down and fix GC problems ? I'm happy to help, but I have difficulty running Lua programs from the command line.

Re: pdd15oo: How do I create a dynamically named class?

2007-10-04 Thread Allison Randal
I just haven't gotten to enabling arrays as a valid input. You'll have it this afternoon. Allison Patrick R. Michaud wrote: How does one create a new class with a name determined dynamically at runtime? For example, suppose I have a string like 'PGE::Perl6Grammar', and from that I want to cre

Re: [perl #46007] [CAGE] licensing cleanup

2007-10-04 Thread Allison Randal
Also, need to change license reference in editor/pasm.el. (It currently gives a URL for Artistic 1.0.) Allison

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 12:27:49PM -0700, Allison Randal wrote: > Patrick R. Michaud wrote: > >Slowly PGE and PGE::Perl6Regex are being updated to work with pdd15oo. > > What sort of changes do you end up making? It shouldn't touch anything > other than the lines of code creating a new class and

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Allison Randal
Patrick R. Michaud wrote: Slowly PGE and PGE::Perl6Regex are being updated to work with pdd15oo. What sort of changes do you end up making? It shouldn't touch anything other than the lines of code creating a new class and instantiating a new object. (And really, it shouldn't even touch creati

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Allison Randal
Patrick R. Michaud wrote: It did occur to me this morning that we can stick with the flat-namespace model that PGE and other tools have been using up-to-now, and make the switch to using multilevel namespaces sometime later. Either way there's going to be a big conversion cycle involved somew

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 01:33:43PM -0700, Allison Randal wrote: > Patrick R. Michaud wrote: > > > >It did occur to me this morning that we can stick with the > >flat-namespace model that PGE and other tools have been > >using up-to-now, and make the switch to using multilevel namespaces > >sometim

Re: pdd15oo: How do I create a dynamically named class?

2007-10-04 Thread Allison Randal
Patrick R. Michaud wrote: How does one create a new class with a name determined dynamically at runtime? For example, suppose I have a string like 'PGE::Perl6Grammar', and from that I want to create a ['PGE';'Perl6Grammar'] class. The code $ cat z1.pir .sub main :main $S0 = 'PG

Re: wrapping up the OO implementation

2007-10-04 Thread Allison Randal
Allison Randal wrote: The two remaining big things are PGE and multiple dispatch, and then test cleanup. The MMD tests are all passing now, so I'm working on test cleanup. Allison

Re: [perl #45859] [PROPOSAL][IMCC] clean up method syntax: bare word and quoted method names

2007-10-04 Thread Will Coleda
On Sep 29, 2007, at 12:07 PM, Klaas-Jan Stol (via RT) wrote: # New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #45859] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45859 > Hi, This proposal is a

Re: pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Will Coleda
I'm assuming PMCNULL is the good (parrot) kind of null, and null is the bad (well, to us, anyway) (C) kind. I would hazard a guess that anything that is returning null instead of PMCNULL is b0rken. On Oct 4, 2007, at 10:38 AM, Patrick R. Michaud wrote: When looking at a trace output (-t1)

Re: pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Allison Randal
Yes, NULL should never make it to the PIR level, only PMCNULL should. I'll dig into this code example next. Will Coleda wrote: I'm assuming PMCNULL is the good (parrot) kind of null, and null is the bad (well, to us, anyway) (C) kind. I would hazard a guess that anything that is returning nul

Re: pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Allison Randal
Patrick R. Michaud wrote: When looking at a trace output (-t1), what's the difference between "PMCNULL" and "(null)"? For example: $ cat y.pir .namespace ['Foo'] .sub main :main $P1 = get_class ['Foo'] $P2 = $P1 $P0 = get_hll_namespace ['Foo'] $P1 = get_cla

[perl #46079] [TODO] Move mmap check into the layer

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46079] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46079 > In src/pmc/parrotio.pmc:open() there is the todo item: /* XXX move this into the layer

[perl #46081] [TODO] PMC layer is stored twice - which is used when?

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46081] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46081 > In src/pmc/parrotio.pmc:open() there is the todo item (with some context): /* XXX laye

[perl #46085] [TODO] Handle stdin in src/pmc/parrotio.pmc:slurp()

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46085] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46085 > In src/pmc/parrotio.pmc:slurp() there is the todo item: /* TODO handle stdin */

[perl #46087] [TODO] Create and implement setbuf() in src/pmc/parrotio.pmc

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46087] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46087 > In src/pmc/parrotio.pmc there is the todo item: =item C XXX TBD This needs to be imp

[perl #46089] [TODO] Create and implement setlinebuf() in src/pmc/parrotio.pmc

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46089] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46089 > In src/pmc/parrotio.pmc there is the todo item: =item C XXX TBD This method needs to

[perl #46091] [TODO] Get a printable name for real_exception() in src/pmc/class.pmc

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46091] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46091 > In src/pmc/class.pmc there is the todo item: /* TODO get printable name */ real_except

[perl #46093] [TODO] Implement adding attributes to instantiated classes

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46093] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46093 > In src/pmc/class.pmc:add_attribute() there is the todo item: if (_class->instantiated)

[perl #46095] [TODO] Handle multi-methods in add_method()

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46095] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46095 > In src/pmc/class.pmc:add_method() there is the todo item: /* XXX Need to handle multi

[perl #46097] [TODO] Implement adding parents to instantiated classes

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46097] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46097 > In src/pmc/class.pmc:add_parent() there is the todo item: if (_class->instantiated) {

[perl #46099] [TODO] Check for existing parent classes in add_parent()

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46099] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46099 > In src/pmc/class.pmc:add_parent() there is the todo item: /* XXX Check we don't alread

[perl #46101] [TODO] Need a pluggable MRO in instantiate() PMC

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46101] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46101 > In src/pmc/class.pmc:instantiate() there is the todo item: /* Build full parents list.

[perl #46083] [TODO] Fix memory leak in src/pmc/parrotio.pmc:open()

2007-10-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46083] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46083 > In src/pmc/parrotio.pmc:open() there is the todo item: /* XXX leaks as in ops/io.ops:

Re: pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 10:46:02PM -0700, Allison Randal wrote: > Patrick R. Michaud wrote: > > $ ./parrot -t1 y.pir > > 0 get_class P1, PC4P1=PMCNULL PC4=Key=PMC(0x92b690) > > 3 set P2, P1 P2=PMCNULL P1=(null) > > 6 get_hll_namespace P0, PC4

Re: [svn:parrot] r21868 - trunk/src/pmc

2007-10-04 Thread chromatic
On Thursday 04 October 2007 23:10:14 [EMAIL PROTECTED] wrote: > Modified: >trunk/src/pmc/parrotio.pmc > > Log: > [pmc] An input argument to the open() method was freed just before it was > used. Thanks to Coverity (CID 131) for pointing this out! This one's a bit tricky, but the previous beh