Re: wrapping up the OO implementation

2007-10-02 Thread Jerome Quelin
On 07/10/01 15:58 -0700, Allison Randal wrote: > - Pick a directory and grep (or ack) for 'find_type'. It was a common idiom > in the old object system that doesn't work any more. Change: > > $IX = find_type "ClassName" > $PX = new $IX > > to: > > $PX = new "ClassName" what about: find_type $

Re: wrapping up the OO implementation

2007-10-02 Thread Jerome Quelin
On 07/10/02 12:58 +0200, Jerome Quelin wrote: > > $IX = find_type "ClassName" > > $PX = new $IX > > > > to: > > > > $PX = new "ClassName" here's a patch for examples/streams. if you ack it, i'll apply it (i should still have the commit bit). regards, jérôme -- [EMAIL PROTECTED] Index: examples/s

Re: wrapping up the OO implementation

2007-10-02 Thread Klaas-Jan Stol
On 10/2/07, Allison Randal <[EMAIL PROTECTED]> wrote: > > My goal was to wrap up the pdd15oo branch by the end of September. We're > quite close. The two remaining big things are PGE and multiple dispatch, > and then test cleanup. Thanks to chromatic and particle for their work > on the tests. > >

[svn:parrot-pdd] r21733 - trunk/docs/pdds/draft

2007-10-02 Thread kjs
Author: kjs Date: Mon Oct 1 21:05:37 2007 New Revision: 21733 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: docs/pdd19_pir.pod: * add note about multiple heredocs per statement * add .pcc_* directives (explicit listing instead of "*") Modified: trunk/docs/pdds/draft/pdd19_pir.pod ==

[svn:parrot-pdd] r21734 - trunk/docs/pdds/draft

2007-10-02 Thread kjs
Author: kjs Date: Mon Oct 1 21:23:47 2007 New Revision: 21734 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: pdd19_pir.pod: * add comment with respect to "pcc_" prefix on calling directives. Refers to (newly opened) ticket #45925. Modified: trunk/docs/pdds/draft/pdd19_pir.pod ==

Re: wrapping up the OO implementation

2007-10-02 Thread jerry gay
On 10/2/07, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: > On 10/2/07, Allison Randal <[EMAIL PROTECTED]> wrote: > > > > My goal was to wrap up the pdd15oo branch by the end of September. We're > > quite close. The two remaining big things are PGE and multiple dispatch, > > and then test cleanup. Than

Re: wrapping up the OO implementation

2007-10-02 Thread Patrick R. Michaud
On Tue, Oct 02, 2007 at 07:19:30AM -0700, jerry gay wrote: > On 10/2/07, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: > > On 10/2/07, Allison Randal <[EMAIL PROTECTED]> wrote: > > the first file I wanted to fix, t/stm/runtime.t, contains this: > > > > $I0 = find_type 'STMQueue' > > if $I0 goto

[svn:parrot-pdd] r21732 - trunk/docs/pdds/draft

2007-10-02 Thread kjs
Author: kjs Date: Mon Oct 1 20:17:53 2007 New Revision: 21732 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: docs/pdd19 * add note about method name spec. (bare/quote/register). Modified: trunk/docs/pdds/draft/pdd19_pir.pod

Re: [IMCC] add ".label" to lexer for macro labels

2007-10-02 Thread Bernhard Schmalhofer
Klaas-Jan Stol schrieb: I wonder in what case it's useful to have a "normal" .local directive in a macro (with its normal semantics). Every time the macro is expanded, the same local var. would be declared, which can't be good. As far as I understand it, PIR macros a simple text replacements w

Stepping away for a while

2007-10-02 Thread Jonathan Worthington
Hi, I've only been notable in Parrot for the last month by my absence. It's partly been down to a lack of time, though even when I've had the time I've just not had the energy or been far from in the right state of mind to have the concentration Parrot guts needs. Nobody here is to blame for

[perl #45941] [TODO] Use an MMD register interface taking a name in mmd_add_function()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45941] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45941 > In src/mmd.c there is the todo item within mmd_add_function(): TODO change this to a M

[perl #45943] [TODO] Handle inheritance and best match seaching in MMD

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45943] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45943 > In src/mmd.c there is the todo item within mmd_register(): TODO - Currently the MMD sy

[perl #45945] [TODO] Fill Bound_NCI with a wrapper function

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45945] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45945 > In src/mmd.c there is the todo item within mmc_vtfind(): /* TODO if is_pmc == 2 a Boun

[perl #45947] [TODO] Create an appropriate class namespace in mmd_search_classes()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45947] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45947 > In the file src/mmd.c there is the todo item within mmd_search_classes(): /* TODO crea

[perl #45949] [TODO] Consider only candidates from current mro in mmd_search_classes()?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45949] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45949 > In src/mmd.c there is the todo item within mmd_search_classes(): if (!PMC_IS_NULL(pmc

[perl #45951] [TODO] Should PMC_int_val be decremented within mmd_cvt_to_types()?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45951] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45951 > In src/mmd.c there is the very cryptic todo item within mmd_cvt_to_types(): (with some

[perl #45953] [TODO] Replace magic number in mmd_distance()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45953] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45953 > In src/mmd.c there is the todo item within mmd_distance() which looks like it means th

[perl #45955] [TODO] Use half of the available INTVAL bits in mmd_sort_candidates()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45955] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45955 > In the file src/mmd.c there is the todo item within mmd_sort_candidates(): * TODO

[perl #45957] [TODO] Implement mmd_is_hidden()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45957] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45957 > In src/mmd.c there is the todo item essentially asking that mmd_is_hidden() be implemen

[perl #45959] [TODO] Check arity (or is that parity) of sub in mmd_maybe_candidate()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45959] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45959 > In the file src/mmd.c there is the todo item within mmd_maybe_candiate(): if (VTABLE_

[perl #45961] [TODO] Cache the namespace in mmd_create_builtin_multi_meth_2()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45961] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45961 > In the file src/mmd.c there is the todo item within mmd_create_builtin_multi_meth_2():

[perl #45963] [TODO] Complete implementation of Parrot_mmd_rebuild_table()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45963] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45963 > In the file src/mmd.c there is the todo item within Parrot_mmd_rebuild_table(): /*

Re: [perl #45959] [TODO] Check arity of sub in mmd_maybe_candidate()

2007-10-02 Thread chromatic
On Tuesday 02 October 2007 10:22:42 Paul Cochrane wrote: > # New Ticket Created by Paul Cochrane > # Please include the string: [perl #45959] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=45959 > > > > In the file src/mmd

[perl #45965] [TODO] Should slot names still have __ in front?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45965] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45965 > In src/objects.c there is the todo item within Parrot_get_vtable_index(): /* XX

[perl #45967] [TODO] Consolidate readable_name(), key_set_to_string() and get_repr()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45967] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45967 > In src/objects.c there is the todo item within readable_name(): XXX this function, key_

[perl #45969] [TODO] fail_if_exist() uses global class registry

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45969] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45969 > In src/objects.c fail_if_exist() has the todo item: XXX uses global class registry I'm

[perl #45971] [TODO] Get printable name for real_exception() in fail_if_exist()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45971] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45971 > In src/objects.c there is the todo item within fail_if_exist(): /* TODO get p

[perl #45973] [TODO] Allow dynamic expansion at runtime in Parrot_MMD_method_idx()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45973] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45973 > In src/objects.c:Parrot_MMD_method_idx() there is the todo item: TODO allow dynamic ex

[perl #45975] [TODO] Make Parrot_single_subclass() threadsafe

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45975] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45975 > In src/objects.c:Parrot_single_subclass() there is the todo item: /* XXX not really th

[perl #45977] [TODO] Create all class structures in constant PMC pool

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45977] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45977 > In src/objects.c:Parrot_new_class() there is the todo item: /* TODO create all class s

[perl #45979] [TODO] Use current namespace as base when nested?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45979] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45979 > In src/objects.c:parrot_class_register() there is the todo item: /* XXX nested, use cu

[perl #45983] [TODO] Try HLL namespaces too in parrot_class_register()?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45983] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45983 > In src/objects.c:parrot_class_register() there is the todo item: /* XXX try HLL namesp

[perl #45985] [TODO] Isn't CONSTRUCT for creating new objects?

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45985] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45985 > In src/objects.c:do_initcall() there is the todo item: * XXX isn't CONSTRUCT for creat

[perl #45987] [TODO] Replace quick and dirty method cache with a more robust one

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45987] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45987 > In src/objects.c there is the todo item (just before Parrot_find_method_direct()): /*

[perl #45989] [TODO] Escape the NULL character within Parrot_add_attribute()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45989] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45989 > In src/objects.c:Parrot_add_attribute() there is the todo item: /* TODO escape NUL cha

[perl #45991] [TODO] Fix memory leak in Parrot_add_attribute()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45991] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45991 > In src/objects.c:Parrot_add_attribute() there is the todo item: /* XXX leak! */ string

[perl #45993] [TODO] Check parent class attribute additions when child class attributes already exist

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45993] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45993 > In src/objects.c:Parrot_add_attribute() there is the todo item: /* * TODO check if so

[perl #45995] remove codestring.pmc from compilers/pge/

2007-10-02 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #45995] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45995 > There's a draft version of codestring.pmc in compilers/pge/PGE/pmc -- this should

[perl #45997] [TODO] Store 'right' class in shared objects

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45997] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45997 > In src/objects.c:attr_str_2_num() there is the todo item: /* XXX Shared objects have t

[perl #45999] [TODO] Handle multi-methods in Parrot_ComposeRole()

2007-10-02 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45999] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45999 > In src/objects.c:Parrot_ComposeRole() there is the todo item: * XXX TODO: multi-metho

[perl #45925] [RFC][IMCC] pcc directives ".pcc_" prefix

2007-10-02 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #45925] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45925 > in order to prevent too much text in the pdd19 document, this ticket for the "long sto

Re: wrapping up the OO implementation

2007-10-02 Thread Allison Randal
Jerome Quelin wrote: here's a patch for examples/streams. if you ack it, i'll apply it (i should still have the commit bit). Looks great! Go ahead and apply it to the pdd15oo branch. Thanks! Allison

Re: wrapping up the OO implementation

2007-10-02 Thread Allison Randal
Patrick R. Michaud wrote: On Tue, Oct 02, 2007 at 07:19:30AM -0700, jerry gay wrote: On 10/2/07, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: [...] but that fails with "Class 'STMQueue' doesn't exist" [...] since the pdd isn't clear on the return value from get_class when a class isn't found, i'll

Re: Stepping away for a while

2007-10-02 Thread Allison Randal
Jonathan Worthington wrote: Hi, I've only been notable in Parrot for the last month by my absence. It's partly been down to a lack of time, though even when I've had the time I've just not had the energy or been far from in the right state of mind to have the concentration Parrot guts needs.

Re: [svn:parrot] r21762 - in branches/pdd15oo/t: library pmc

2007-10-02 Thread Patrick R. Michaud
[Resending to parrot-porters.] On Tue, Oct 02, 2007 at 02:38:50PM -0700, [EMAIL PROTECTED] wrote: > Log: > [t] Fixed two more failing tests from ResizablePMCArray returning > PMCNULL, not Undef, for non-existent values. I'm getting "Null PMC access" errors when retrieving strings and integers f

Re: [svn:parrot] r21762 - in branches/pdd15oo/t: library pmc

2007-10-02 Thread Allison Randal
Patrick R. Michaud wrote: To be consistent with Hash and some of the other aggregates, the set opcode should return PMC null _only_ when fetching a PMC from an aggregate, if fetching a string or number it should return the empty string or zero. $P0 = new 'ResizablePMCArray' $P1 = $P0[5

Re: wrapping up the OO implementation

2007-10-02 Thread Allison Randal
Jerome Quelin wrote: other question: which directory has the higher priority for you? They all need to be fixed before we roll the branch back into the trunk, so they're all equally important. Allison

[perl #45883] [PATCH] config/auto/gdbm.pm, config/auto/gmp.pm, config/gen/icu.pm: Provide explicit arguments to options->get

2007-10-02 Thread James E Keenan
[I created this RT on Sunday but it did not get CC-ed to list or newsgroup. So I'm copying it here.] Each of these three configuration step packages' runstep() subroutines calls Parrot::Configure::Data::get() on the options part of the Parrot::Configure object and provides file-scoped global v