SharedPool method definitions do not resolve Class names

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

SharedPool method definitions do not resolve Class names

Ben Coman
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?
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: SharedPool method definitions do not resolve Class names

Nicolai Hess-3-2


2016-09-19 16:02 GMT+02:00 Ben Coman <[hidden email]>:
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.
 
cheers -ben


Reply | Threaded
Open this post in threaded view
|

Re: SharedPool method definitions do not resolve Class names

Marcus Denker-4

On 20 Sep 2016, at 10:38, Nicolai Hess <[hidden email]> wrote:



2016-09-19 16:02 GMT+02:00 Ben Coman <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: SharedPool method definitions do not resolve Class names

Clément Béra
In reply to this post by Nicolai Hess-3-2
Are SharedPool supposed to be instantiated ? Why did you need to instantiate a SharedPool ? 

I only use them (maybe mistakenly) by setting with class-side methods the default values of the SharedPool class variables, then use the poolDictionary: keyword to access those variables values from other classes. I thought that was the only way they should be used. Please explain me the other use-cases for a shared pool.




On Tue, Sep 20, 2016 at 10:38 AM, Nicolai Hess <[hidden email]> wrote:


2016-09-19 16:02 GMT+02:00 Ben Coman <[hidden email]>:
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.
 
cheers -ben



Reply | Threaded
Open this post in threaded view
|

Re: SharedPool method definitions do not resolve Class names

Marcus Denker-4
Hi,

Yes, this is why it works now… but I think it would be good to be more uniform.

I remember that there where some non-standard uses of SharePool subclasses in native boost at some
point, so it is not obvious that these classes are different.

On 20 Sep 2016, at 13:59, Clément Bera <[hidden email]> wrote:

Are SharedPool supposed to be instantiated ? Why did you need to instantiate a SharedPool ? 

I only use them (maybe mistakenly) by setting with class-side methods the default values of the SharedPool class variables, then use the poolDictionary: keyword to access those variables values from other classes. I thought that was the only way they should be used. Please explain me the other use-cases for a shared pool.




On Tue, Sep 20, 2016 at 10:38 AM, Nicolai Hess <[hidden email]> wrote:


2016-09-19 16:02 GMT+02:00 Ben Coman <[hidden email]>:
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.
 
cheers -ben