ReneMiner
16-02-2015, 11:47
Because we have Static UDT-members that have the nature to be automatic part of an extended type of an udt i think it needs to be differed and i think of 3 ways:
1.
Type t_type
Static X As Long Value 123
End Type
Static udt-members should be able to assign initial value within type-description.
It should be allowed to use loaded module-functions (Ini_GetKey, RGB etc.) to assign initial value.
Static udt-members are the same to all variables of this type and to any type that Extends this type. As is currently.
2.
Type t_type
Const X As Long Value 123
End Type
Const can not be changed/assigned outside this type-description.
It should be allowed to use loaded module-functions to assign a value.
Const-members NOT automatic members of types that Extends this type,
extensions may have same named members with different content
Const-members are the same to all variables of exactly this type
3.
Type t_type
Static Const X As Long Value 123
End Type
Static Const can not be changed/assigned outside this type-description.
It should be allowed to use loaded module-functions to assign a value.
Static Const-members are as statics the same to all of this type and any type that Extends it
1.
Type t_type
Static X As Long Value 123
End Type
Static udt-members should be able to assign initial value within type-description.
It should be allowed to use loaded module-functions (Ini_GetKey, RGB etc.) to assign initial value.
Static udt-members are the same to all variables of this type and to any type that Extends this type. As is currently.
2.
Type t_type
Const X As Long Value 123
End Type
Const can not be changed/assigned outside this type-description.
It should be allowed to use loaded module-functions to assign a value.
Const-members NOT automatic members of types that Extends this type,
extensions may have same named members with different content
Const-members are the same to all variables of exactly this type
3.
Type t_type
Static Const X As Long Value 123
End Type
Static Const can not be changed/assigned outside this type-description.
It should be allowed to use loaded module-functions to assign a value.
Static Const-members are as statics the same to all of this type and any type that Extends it