On 20 Sep 2016, at 10:38, Nicolai Hess <nicolaihess@gmail.com> wrote:



2016-09-19 16:02 GMT+02:00 Ben Coman <btc@openinworld.com>:
This is probably my lack of understanding but I found this surprising
behaviour....

I was trying to add a method to a subclass of FFIExternalEnumeration
and it was not recognising classes.  I traced this back to SharedPool
which can be demostrated by trying to save the following method...

SharedPool >> test1
    ^Object


reports... "Unknown variable: Object please correct, or cancel:"


Any insights?

I think it is a bug. SharedPool implement some special lookup to make the SharedPool variable lookup work. But it seems this conflicts with the variable lookup for 
globals.

Yes, I think so, too. It should be possible to do the right thing (lookup local, then global).

Marcus