Re: routine_id

new topic     » goto parent     » topic index » view thread      » older message » newer message
DonCole said...

Sorry Derek, When I run your program I get variable r_MyProc has not been assigned a value .

I take it you didn't notice Matt's correction to my code. It should have read ...

integer r_MyProc  
procedure main()  
  call_proc(r_MyProc, {})  --<<<< Here is the call.  
end procedure  
  
procedure MyProc() --<<<< Here is the routine.  
  puts(1, "MyProc called\n")  
end procedure  
r_MyProc = routine_id("MyProc")  
  
main() 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu