Imported from previous forum
In regards to the new Type Definition proposal:
<define name="MyString"> <string/> </define>
<template name="MyTpl">
<field name="Foo"> <type name="MyString"/> </field>
</template>
Are there any restrictions to the location of the type definition? For example:
- Do all of the type definitions appear before template definitions?
- Does a type definition have to appear before it is referenced?
- Or can a field reference a type that has not been defined yet?
The intention is that they may appear in any order (your alt. 3). This would also be consistent with static template references which may appear before the template they refer to.
/David
In regards to the new Type Definition proposal:
Are there any restrictions to the location of the type definition?
For example:
- Do all of the type definitions appear before template definitions?
- Does a type definition have to appear before it is referenced?
- Or can a field reference a type that has not been defined yet?