Please support Structure-Pointer as return value (see example it work but I have to declare the procedure return value as Integer)
Maybe adapting the syntaxcheck and find a nice syntax (e.g.: Procedure.aStr* or Procedure.*aStr) and it more easier to write wrappers for PureBasic.
Thanks.
Code: Select all
Structure aStr
b.l
a.i
EndStructure
; Procedure.aStr* test() <<<<<<<<<<<<<<<<<< Compiler syntax error
; ddd.aStr
; ddd\a = 100
; ddd\b = 10
; ProcedureReturn @ddd
; EndProcedure
Procedure.i test()
Static ddd.aStr
ddd\a = 100
ddd\b = 10
ProcedureReturn @ddd
EndProcedure
*bb.aStr = test()
Debug *bb\b
Debug *bb\a