[Glass] Strange errors with SortedCollection instances ...

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Wed Jun 22 11:08:18 PDT 2016



On 06/21/2016 01:22 AM, Marten Feldtmann via Glass wrote:
>
> How is this handled when using indices on collections ?
>
When updating an object that is used in an index, no messages are sent 
(except for Selector-based path terms) as the object state is directly 
accessed. Additionally the implementation is tolerant of nils being 
encountered along an access path .... At the lowest levels the index 
code detects that an instance variable associated with an index is being 
modified and the index is updated in anticipation of the new value (see 
Object>>_modifyingInstVarAtOffset:to:) ... the "update" involves 
removing the old index entry for the old value and adding a new entry 
for the new value --- if there is a nil along the path then the new 
entry is not created ...

Dale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20160622/f7f8ef5a/attachment.html>


More information about the Glass mailing list