[Implemented] @ and * for procedure

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

[Implemented] @ and * for procedure

Post 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
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 Danilo.

Code: Select all

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

*proc=@test()

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