|
Mathias Bauer wrote: Hmm, well, no, not really. OOo Basic gets the name of a method and then it starts to look for it, if not found, it'll look in the interfaces, first match wins, if I understand the behaviour correctly.E.g., in the ooRexx support for UNO/OOo the connection-routine looks like: The above is a little bit (but significantly!) different: it would not go out and look for methods in interfaces on its own at all. The programmer needs to denominate the interface, if its methods are to be used, otherwise a runtime error would occur, indicating that the intended method was not found. The point just is, that denominating the interface is unobstrusive in this case, as the programmer does not need to explicitly carry out the queryInterface(), rather the "under-the-covers" support for UNO (realized in the form of an ooRexx module for UNO) does this, alleviating the programmer. Probably it would be possible to do the same with OOo Basic, ie. add that behaviour there as well (and it should be possible without breaking existing code), e.g. uur.XUnoUrlResolver.resolve(unoURL)This at first may look like "syntax sugar", as the present behaviour would still be available. But if desired (as an additional suggestion to OOo Basic), one could add an OPTION to indicate that interfaces need to be explicitly denominated. Regards, ---rony |
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and ... Rony G. Flatscher
- Re: [api-dev] multiple-inheritance interafces ... Mathias Bauer
- Re: [api-dev] multiple-inheritance interafces and ... Joerg Budischewski
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and ... Jörg Budischewski
- Re: [api-dev] multiple-inheritance interafces ... Rony G. Flatscher
- Re: [api-dev] multiple-inheritance interaf... Mathias Bauer
- Re: [api-dev] multiple-inheritance int... Rony G. Flatscher
- Re: [api-dev] multiple-inheritanc... Mathias Bauer
- Re: [api-dev] multiple-inheritance interaf... Joerg Budischewski
- Re: [api-dev] multiple-inheritance int... Matthias Benkmann
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and ... Rony G. Flatscher
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and ... Joerg Budischewski
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
- Re: [api-dev] multiple-inheritance interafces and ... Rony G. Flatscher
- Re: [api-dev] multiple-inheritance interafces and metho... Stephan Bergmann
