I'am new here and I use the german forum since ca. two years. Today I've posted in the german forum a topic about "StructureUnion" and got no consents on my problem.
So I think... let's try it here

Here is my following problem:
Code: Select all
Structure Variant
Type.i
StructureUnion
Integer.i
String.s
EndStructureUnion
EndStructure
Why not handle invalid StructureUnions in the compiler functions (see above), instead of handling it in the definition of a structure? The size of strings (more exact - it's pointers) is constant and the initialization is called automaticly in the first runtime assignment.
I hope you can understand my (hopefully not bad) english and also my problem.

Josef