Its an object format specific stuff. The weak object can have a fixed slots (ivars) which are strongly referenced, and only variable slots are weakly referenced. If you will want to make ivars to be also weakly referenced, then you will need another object format. On 6 December 2011 16:14, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
Hi guys. I have two small questions related to weak objects.
1) It seems all Weak objects are variable. ALWAYS. Why? It doesn't make sense to have a fixed weak object ?
2) We have the methods:
variableByteSubclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat variableSubclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat variableWordSubclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat
So... WHY we have then:
weakSubclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat
rather than
variableWeakSubclass: t instanceVariableNames: f classVariableNames: d poolDictionaries: s category: cat
is there any reason I am not seeing?
Thanks in advance,
-- Mariano http://marianopeck.wordpress.com
-- Best regards, Igor Stasenko.