ability to type-in code in any order

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Jose.

; Wishlist entry, the ability to type-in code in any order

Procedure ProcOne()
Debug "ProcOne Called"
EndProcedure

;Declare ProcTwo() ;<<< This line fixes the problem
; Would be nice not to have to do this, it also
; can cause problems when keeping parameters in sync
; between the declare and the Procedure definition

Procedure SomeOther()
; Call procTwo
ProcTwo() ;<<< This line will cause ERROR
;as ProcTwo() is defined lower down in code
EndProcedure

Procedure ProcTwo()
Debug "ProcTwo Called"
EndProcedure

; Main Code
Main()
End

Thanks



Registred PureBasic User, 2.60-)