I guess so.

Doru

On Fri, Jan 16, 2015 at 3:28 PM, Andrei Chis <[email protected]>
wrote:

> Hi Marcus,
>
> So now ' self class allSlots ' should be used also in the debugger to get
> the instance variables of an object?
>
>
> Cheers,
> Andrei
>
> On Fri, Jan 16, 2015 at 2:59 PM, Marcus Denker <[email protected]>
> wrote:
>
>> Hi,
>>
>> Now GTInspector can inspect objects that use custom Slot definitions.
>>
>>
>> https://pharo.fogbugz.com/f/cases/14741/GTInspector-add-simple-slot-support
>>
>> create a class with he TestSlot (where the ivar lives in the Slot
>> instance and is thus shared
>> over all instances of A):
>>
>> Object subclass: #A
>> slots: { #iv => TestSlot }
>> classVariables: {  }
>> category: ‘Playground'
>>
>>
>> Inspect
>>
>> A new
>>
>> change “iv” to value (e.g. 5).
>>
>> inspect another  "A new”
>>
>> ==> it should show the value as 5.
>>
>> Thus both reading and writing now is done via the Slot. (as such this
>> require just a very simple change in GT, of course).
>>
>> The GT support of course needs to be improved later:
>>
>> -> we need a view that shows the object “as it really is” (keep in mind,
>> this object has no VM level instance variable!).
>> -> In the view with the slots they should annotated so we see that it is
>> a slot and can easily navigate to the slot definition
>> -> … I am sure more will be obvious as soon as we use it.
>>
>> Marcus
>>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"

Reply via email to