Re: Phix syntax

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

I tried a few tests with the universal "set" procedure as used in EuGTK, but it won't work since the class routines don't have routine-ids.

Actually they do. There are two catches:
1) you don't use routine_id, it's already there for you
2) you have to explicitly provide a "this" as first parameter on the call_func/proc.

This works fine for me (outside the class):

?w.handle  -- 18 
call_proc(w.set_handle,{w,19}) -- same as w.set_handle(19) 
?w.handle  -- 19 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu