[Pharo-dev] [Slots] Invisible Slots
marcus.denker at inria.fr
Sat Jan 24 08:24:27 EST 2015
> On 24 Jan 2015, at 11:24, Marcus Denker <marcus.denker at inria.fr> wrote:
> One of the power of slots is the concept of Virtual Slots that do not have an ivar to store their state.
> But of course, some uses fo this concept want to store state in the object.
> (e.g. imagine a property slot, all proper slots of the object would store into a property dictionary).
> The idea is that one can add iVars reflectively that are hidden from both introspection *and* the class
> definition. (the inspector should get a view to see reality, of course, similar to how we tread Dictionaries and OrderedCollection:
> The “basic” view is not relavant in most cases, it is just available in addition, the default is the high level view that is closer
> to the “mental model” of the programmer).
> https://pharo.fogbugz.com/f/cases/14786/Slots-add-HiddenInstanceVariableSlot-and-rename-AbstractInstanceVariableSlot-to-IndexedSlot <https://pharo.fogbugz.com/f/cases/14786/Slots-add-HiddenInstanceVariableSlot-and-rename-AbstractInstanceVariableSlot-to-IndexedSlot>
Ups, loading the Slice crashes the VM :-)
This kind of shows why doing these things in tiny, tiny steps is they way to go…
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev