perl.cvs.parrot
[Top] [All Lists]

Re: [svn:parrot] r21705 - branches/pdd15oo/compilers/pge/PGE

Subject: Re: [svn:parrot] r21705 - branches/pdd15oo/compilers/pge/PGE
From: Patrick R. Michaud
Date: Tue, 2 Oct 2007 09:41:07 -0500
Newsgroups: perl.cvs.parrot

I'm finally back to reviewing changes after being off-Parrot
for the weekend.  In the svn log I notice:

On Sun, Sep 30, 2007 at 09:38:23PM -0700, allison@xxxxxxxxxxxx wrote:
> Log:
> [pdd15oo] Undefined attributes return Undef instead of PMCNULL in the new
> metamodel, because the attribute store is just an array.

As I've mentioned in the past -- this doesn't seem to leave us any way
to distinguish uninitialized attributes from those that are storing
Undef.  The standard throughout the rest of Parrot seems to be that
accessing a symbol that hasn't been initialized returns "null" as opposed
to Undef.  I think object attributes ought to act consistently with that
approach.

Pm

<Prev in Thread] Current Thread [Next in Thread>