[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] STInST Parser and parsing Glut (and other code)
From: |
Holger Hans Peter Freyther |
Subject: |
Re: [Help-smalltalk] STInST Parser and parsing Glut (and other code) |
Date: |
Thu, 19 Dec 2013 14:33:57 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Dec 19, 2013 at 02:01:38PM +0100, Holger Hans Peter Freyther wrote:
> > So it appears that the STCompiler is somehow "ignoring" the namespace
> > that I pass in? Paolo do you have an idea of why that is the case?
>
> it is probably an issue with the symbol table.
Close. It is the DefaultPoolResolution>>#lookupBindingOf:. Even if the
current namespace is "Doo". "Doo" will be searched _after_ the Smalltalk
namespace.
So in STCompiler>>#compile:..
aNamespace isNil ifFalse: [compiler addPool: aNamespace].
should probably become something like addPoolFirst: and STSymbolTable>>#
addPoolFirst should be added too.
comments?