Code: Select all
Structure STRUCTA
a.i
List StructsB.STRUCTB()
EndStructure
Structure STRUCTB
b.i
List StrucsA.STRUCTA()
EndStructure
Or maybe a declarestructure STRUCTB ? but without declaring the fields i am not sure if it would make sense.
Code: Select all
Structure STRUCTA
a.i
List StructsB.STRUCTB()
EndStructure
Structure STRUCTB
b.i
List StrucsA.STRUCTA()
EndStructure
Code: Select all
Structure STRUCTAB
StructureUnion
a.i
b.i
EndStructureUnion
List StructsAB.STRUCTAB()
EndStructure
Freak had this to say about it: http://www.purebasic.fr/english/viewtop ... 16#p417016Justin wrote:It is so hard to implement a 2 pass compiler
PB uses FASM which is multi-pass compiler.Mistrel wrote:Having the compiler be single-pass is one of the reasons compilation is so mindbogglingly fast.
Probably you will spend 1000x more time declaring your stuff than waiting for a 2 pass compilation.Mistrel wrote:Having the compiler be single-pass is one of the reasons compilation is so mindbogglingly fast. I would not trade this for anything!
Justin wrote: Probably you will spend 1000x more time declaring your stuff than waiting for a 2 pass compilation.
I declare everything as I go so I never notice.Justin wrote: Probably you will spend 1000x more time declaring your stuff than waiting for a 2 pass compilation.