Changes between Version 1 and Version 2 of TypeSystem
- Timestamp:
- 02/11/10 21:22:36 (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TypeSystem
v1 v2 19 19 #. Lists. 20 20 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. 22 22 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: ) 24 26 25 The simple way to solve this problem is not to support Container Attributes as Objects are our container system in the MysteryMachine architecture.27 The simple way to solve this problem is not to support generic Container Attributes as Objects are our container system in the MysteryMachine architecture. 26 28 27 29 The 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). 28 30 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.31 Another 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. 30 32 33 When 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. 31 34 35 The first use is also easy as it only store references. 36 37 So the current resolution is that MysteryMachine will support indexable attribute **but** not generic container attributes as they can be implemented with Objects. 32 38 33 39 }}}
