develooper Front page | perl.perl6.internals | Postings from March 2006

Re: more pdd21 questions

Thread Previous | Thread Next
From:
Chip Salzenberg
Date:
March 10, 2006 08:45
Subject:
Re: more pdd21 questions
Message ID:
20060310164507.GC5208@tytlal.topaz.cx
On Fri, Mar 10, 2006 at 05:33:01PM +0100, Leopold Toetsch wrote:
> >a) Parrot's default namespace is untyped (raw). This means that a 
> >variable/subroutine can't have the same name as a namespace. This 
> >could break existing code.
> >
> >b) Otherwise, Parrot's namespace is (half-)typed, at least namespace 
> >and variable/sub are allowed to coexist with the same name. [1]
> 
> I've implemented now b). The overhead is low (one if statement) and no 
> additional storage space is used, if either a NameSpace or a var_or_sub 
> is stored into a name slot.

Ah, well, I'm sorry to report that (a) was the correct answer; Parrot's
default should be entirely untyped.

Sorry I didn't catch this earlier, but I'm actually on the road today, so
it's a good thing I caught it now before users could start counting on it.
-- 
Chip Salzenberg <chip@pobox.com>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About