Code: Select all
Structure AA
AA.a
EndStructure
Structure AABB
v1.AA
v2.BB
EndStructure
Structure BB
BB.b
EndStructure
Code: Select all
Structure AA
AA.a
EndStructure
Structure AABB
v1.AA
v2.BB
EndStructure
Structure BB
BB.b
EndStructure
Code: Select all
Structure AA
AA.a
EndStructure
Structure BB
BB.b
EndStructure
Structure AABB
v1.AA
v2.BB
EndStructure
umm, ts-soft shows otherwiseSTARGÅTE wrote:Why?
Procedures can call each other, structures not!
No!, Declare for procedures make it run!Damnit why not? Why do we have Declare anyway? It makes coding easier!
Code: Select all
Structure AA
A.BB
EndStructure
Structure BB
B.AA
EndStructure
Code: Select all
DeclareStructure BB
Structure AA
A.BB
EndStructure
Structure BB
B.i
EndStructure
Code: Select all
Declare a()
Declare b()
Procedure a()
Debug "a"
If Random(1)
b()
EndIf
EndProcedure
Procedure b()
Debug "b"
If Random(1)
a()
EndIf
EndProcedure
a()
For structures it can be done via pointers. It can cause some headaches, but it is how it can currently be accomplished.c4s wrote:Maybe I missed something obvious that dismisses my feature request but I don't see why Declare only works for procedures. I think it's equally important for structures, arrays, lists etc.
Code: Select all
Structure AABB
*v1.AA
*v2.BB
EndStructure
Structure AA
AA.a
EndStructure
Structure BB
BB.b
EndStructure