Sean P. DeNigris wrote
> Sean P. DeNigris wrote
>> Object subclass: #MyClass
>>      slots: { #var1 => MySlot adjustment: 10 }
>>      classVariables: {  }
>>      category: ''
>> …
>> but when I open a new browser on the class definition of MyClass, the
>> slots
>> are truncated to:
>> slots: { #var1 => MySlot }
> 
> It turns out that the slot is still "working" e.g. #adjustment is still
> having its effect e.g. 
>     read: anObject
>       ^ (super read: anObject) ifNotNil: [ :val | val + self adjustment ]
> It's just that the class template has lost information.
> 
> Another issue:
> Changing the slots in the template from "{ #var1 => MySlot adjustment: 10
> }"
> to "{ #var1 => MySlot adjustment: 100 }" has no effect unless I accept an
> intermediate "{ #var1 }"
> 
> 
> 
> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

That's because you need to redefine #= and #definitionString (alternatively:
redefine #printOn:) in your slot class.

Also regarding tool support: there's bug tracker entry 
https://pharo.fogbugz.com/f/cases/19541/References-to-class-should-also-be-searched-in-class-definitions
<https://pharo.fogbugz.com/f/cases/19541/References-to-class-should-also-be-searched-in-class-definitions>
  



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Reply via email to