Re: Phix 0.8.2 uploaded

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

Can you recommend a demo or demos that use class and methods?

There are now 16 examples on https://rosettacode.org/wiki/Category:Phix/Class

I've also just identified these as potential grateful recipients of a class-based version:
https://rosettacode.org/wiki/Delegates#Phix
https://rosettacode.org/wiki/Respond_to_an_unknown_method_call#Phix
https://rosettacode.org/wiki/Polymorphic_copy#Phix
https://rosettacode.org/wiki/Polymorphism#Phix
https://rosettacode.org/wiki/Averages/Simple_moving_average#Phix

Lastly, obviously you've already run test/t64struct.exw

PS It would be remiss of me not to mention that while the use of classes should make no measurable difference for the vast bulk of something like EuGTK, there may be some "tight inner loops" such as idle/resize/refresh handling which might be noticably better off done the old fashioned way, that is if they're ever likely to be called thousands of times a second, for the very same reasons that myfunc(x,y) will beat call_func(routine_id("myfunc"),{x,y}) hands down.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu