Re: Phix syntax
- Posted by petelomax Dec 22, 2020
- 854 views
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