Page 1 of 1

[Implemented] @ and * for procedure

Posted: Sun Feb 09, 2003 8:02 pm
by BackupUser
Restored from previous forum. Originally posted by GPI.

small example

procedure test(h1,h2)
procedurereturn h1+h2
endprocedure

*proc=@test()
;or "*proc.procedure(h1,h2)=@test()
; this should be easier for the compiler,or not?

debug *proc(10+4)

(Implemented with 'Prototype')

GPI

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB

Posted: Sun Feb 09, 2003 8:32 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.

Code: Select all

Procedure test(h1,h2)
   ProcedureReturn h1+h2
EndProcedure

*proc=@test()

Debug CallFunctionFast(*proc,10,4)
cya,
...Danilo
(registered PureBasic user)