Changes between Version 1 and Version 2 of TypeSystem

Show
Ignore:
Timestamp:
02/11/10 21:22:36 (7 months ago)
Author:
rgammans (IP: 217.155.72.205)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TypeSystem

    v1 v2  
    1919#. Lists. 
    2020 
    21 It is this last type (lists) which leave us with simple quandary. What type are the elements of the list. 
     21   It is this last type (lists) which leave us with simple quandary. What type are the elements of the list. 
    2222 
    23 To keep thing as simple as possible for the AttributeInternals, we need to decide this in a simple way. If list can store any attribute type internally then we immediately get into the the possibility of having an ever increasing number of parts specifiers for the attribute (see `AttributeInternals`:trac: ) 
     23   To keep thing as simple as possible for the AttributeInternals, we need to decide this in a simple way. If list can      
     24   store any attribute type internally then we immediately get into the the possibility of having an ever increasing  
     25   number of parts specifiers for the attribute (see `AttributeInternals`:trac: ) 
    2426 
    25 The simple way to solve this problem is not to support Container Attributes as Objects are our container system in the MysteryMachine architecture. 
     27The simple way to solve this problem is not to support generic Container Attributes as Objects are our container system in the MysteryMachine architecture. 
    2628 
    2729The original aim of List was to be able to give attributes an ordering relation in the Document objects. (This could be solved by using sort attribute order or similar here). 
    2830 
    29 One final use though of List style attributes would in special atributes which link Plot elements back to the Characters which included them. Again the attribute would provide a ordering relation and mechanism to refer to plot element from the character object. Although in the case the actuall data in the listAttribute is stored in other attributes elsewhere. 
     31Another of List style attributes would be in special attributes which link Plot elements back to the Characters which included them. Again the attribute would provide a ordering relation and mechanism to refer to plot element from the character object. Although in the case the actuall data in the listAttribute is stored in other attributes elsewhere. 
    3032 
     33When we look at this two uses we can see that we the problem can solve itself, look at second use first we can see that what this use needs is not so much a container attribute but an 'indexable' attribute. The actual content of each index element is pulled from other attributes within the system. 
    3134 
     35The first use is also easy as it only store references. 
     36 
     37So the current resolution is that MysteryMachine will support indexable attribute **but** not generic container attributes as they can be implemented with Objects. 
    3238 
    3339}}}