[phix niggles] First class routine

new topic     » topic index » view thread      » older message » newer message

A few small details about routine_id:

integer rid = routine_id("print") 

--> fatal problem with autoinclude "print" 

Can be fixed as:

print(1, "do this first" ) 
integer rid = routine_id("print") 

Must use integer but not number:

print(1, "do this first" ) 
 
number r_print = routine_id("print")  
r_print(1, "hello" ) 

r_print(1, "hello" ) 
       ^ '=' expected 

print(1, "do this first" ) 
 
integer r_print = routine_id("print")  
r_print(1, "hello" ) 

"do this first""hello" 

be well
_tom

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu