Restored from previous forum. Originally posted by Franco.
Well we don't need a 2 pass compiler anymore for more flexibility while coding.
The new 'Declare' command does it all!
Excellent work Fred
While there is no example file and no documentation/explanation for it, here is an example how to use it.
Remember: if you 'Declare' a Procedure you must have the same amount of parameters later used!
Have fun!
Code: Select all
;Declare example
;This is neat!
;now the user can declare a procedure with:
Declare MyProcedure(Message.s)
;and then call the procedure
MyProcedure("My Message")
;and place the actual procedure anywhere
;but the 'Declare' and actual 'Procedure'
;must have the same parameters
;actual procedure
Procedure MyProcedure(Message.s)
MessageRequester("Declare a Procedure", Message)
EndProcedure
Franco
Sometimes you have to go a lonely way to accomplish genius things.