Re: calling methods

2018-05-26 Thread Lance Dillon
You know, I was looking at the PyGobject code, which basically does the same thing.  It looks at the methods and properties and such and creates the object at that time.  I'll look at that, that would probably be best. I'm hoping to get some demonstration code soon...  The documentation for

Re: calling methods

2018-05-26 Thread H. William Welliver III
When I wrote an Objective-C bridge, I used introspection at class creation time: I overloaded ObjectiveC->`[]() so that when, for example, ObjectiveC.NSObject was accessed, a c-method performed introspection of the NSObject class and created a program dynamically using the C level module API: s

calling methods

2018-05-26 Thread Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
> Which brings up a question:  is it possible to add a method to a > class that has already started and ended (using start_new_program() > and end_program()). > And how could I write the frontend pike code to intercept > GTK3.Window and have it call GTK3.method_missing.  I was looking at > the GT

Re: calling methods

2018-05-26 Thread Lance Dillon
Yeah, that's what the gtk2 module does, I'm wondering if I can add functions to a class (in the c code) that has already been created and ended using end_program(). Sent from Yahoo Mail on Android On Sat, May 26, 2018 at 11:14 AM, Stephen R. van den Berg wrote: Lance Dillon wrote: >Which

Re: calling methods

2018-05-26 Thread Stephen R. van den Berg
Lance Dillon wrote: >Which brings up a question:?? is it possible to add a method to a class that >has already started and ended (using start_new_program() and end_program()). Overloading the `-> operator should work. -- Stephen.