ReneMiner
30-09-2018, 09:31
I could not find any news yet about instantly assigning value to static udt-subelements yet.
But I still wish for it...
Imagine, simple example:
Type tVec2D
Static sType As String Value "Double"
Static Points As Long Value 2
X As Double
Y As Double
End Type
sType will contain "Double" for every item dimensioned as tVec2D.
(It's just an example, OK?)
The value of Points for every item dimensioned as tVec2D will be 2. It says a tVec2D persists of 2 points...
Now:
Type tVec3D Extends tVec2D
Static Points As Long Value 3
Z As Double
End Type
Yes, that's a bit tricky.
In this case the "Points" should hold a different value than the Type that is Extends'ed. But the other static value that says "Double" should be available too. It has not been assigned explicitly on type-declaration, so it has to be inherited from tVec2D with same value.
Could this be realized?
But I still wish for it...
Imagine, simple example:
Type tVec2D
Static sType As String Value "Double"
Static Points As Long Value 2
X As Double
Y As Double
End Type
sType will contain "Double" for every item dimensioned as tVec2D.
(It's just an example, OK?)
The value of Points for every item dimensioned as tVec2D will be 2. It says a tVec2D persists of 2 points...
Now:
Type tVec3D Extends tVec2D
Static Points As Long Value 3
Z As Double
End Type
Yes, that's a bit tricky.
In this case the "Points" should hold a different value than the Type that is Extends'ed. But the other static value that says "Double" should be available too. It has not been assigned explicitly on type-declaration, so it has to be inherited from tVec2D with same value.
Could this be realized?