Hello. I try to look how many classes has "isVariable=true" and "instSize>0". And I found two strange cases: PathTests and FileReferenceTest is variable classes. Why they are variable? And more general: how classes become variable? For example Path isVariable = true. But I not see initialize method which set it. Best regards, Denis
Denis,
On 24 Dec 2015, at 10:31, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hello.
I try to look how many classes has "isVariable=true" and "instSize>0". And I found two strange cases: PathTests and FileReferenceTest is variable classes. Why they are variable?
Those are most probably mistakes.
And more general: how classes become variable? For example Path isVariable = true. But I not see initialize method which set it.
This is done in the class creation template: ArrayedCollection variableSubclass: #Array instanceVariableNames: '' classVariableNames: '' category: 'Collections-Sequenceable' Note the VARIABLE before subclass in the message. HTH, Sven
Best regards, Denis
Thank's Sven. I not noticed it. 2015-12-24 10:49 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>:
Denis,
On 24 Dec 2015, at 10:31, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hello.
I try to look how many classes has "isVariable=true" and "instSize>0". And I found two strange cases: PathTests and FileReferenceTest is variable classes. Why they are variable?
Those are most probably mistakes.
And more general: how classes become variable? For example Path isVariable = true. But I not see initialize method which set it.
This is done in the class creation template:
ArrayedCollection variableSubclass: #Array instanceVariableNames: '' classVariableNames: '' category: 'Collections-Sequenceable'
Note the VARIABLE before subclass in the message.
HTH,
Sven
Best regards, Denis
Hi Denis, This is a bit old, but it might help you understand a few things more: https://marianopeck.wordpress.com/2011/05/07/class-formats-and-compiledmetho... (forget a bit about the CompiledMethod explanation) Cheers, On Thu, Dec 24, 2015 at 6:57 AM, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Thank's Sven.
I not noticed it.
2015-12-24 10:49 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>:
Denis,
On 24 Dec 2015, at 10:31, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hello.
I try to look how many classes has "isVariable=true" and "instSize>0". And I found two strange cases: PathTests and FileReferenceTest is variable classes. Why they are variable?
Those are most probably mistakes.
And more general: how classes become variable? For example Path isVariable = true. But I not see initialize method which set it.
This is done in the class creation template:
ArrayedCollection variableSubclass: #Array instanceVariableNames: '' classVariableNames: '' category: 'Collections-Sequenceable'
Note the VARIABLE before subclass in the message.
HTH,
Sven
Best regards, Denis
-- Mariano http://marianopeck.wordpress.com
participants (3)
-
Denis Kudriashov -
Mariano Martinez Peck -
Sven Van Caekenberghe