[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [feature] <import: PoolDict> for namespaces

From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [feature] <import: PoolDict> for namespaces
Date: Mon, 19 May 2008 00:29:36 -0700

Issue status update for Post a follow up:

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     feature requests
Priority:     normal
Assigned to:  Unassigned
Reported by:  S11001001
Updated by:   bonzinip
-Status:       committed
+Status:       fixed

> In practice, that would mean that A.Var would
> not refer to a Var defined in a shared pool of A.
I consider this to be a feature, not just an optimization.

I agree.

all namespaces added by the class-containing-namespace
walk will also have their pools added

Yes, I just tried it on this and it worked:

Namespace current: A [
Object subclass: KlassA [ KlassA class >> pathSep [ ^PathSeparator
] ]
   Namespace current: B [
       Object subclass: KlassB [ KlassB class >> pathSep [
^PathSeparator ] ]

A.KlassA pathSep printNl.
A.KlassA allSharedPoolDictionariesDo: [ :each | each printNl ].
A.B.KlassB pathSep printNl.
A.B.KlassB allSharedPoolDictionariesDo: [ :each | each printNl ]

Should have just tried it before asking you, sorry! :-)  Merged to

reply via email to

[Prev in Thread] Current Thread [Next in Thread]