Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Martin Schreiber
On Thursday 29 September 2016 01:14:44 David Emerson wrote: > On 09/28/2016 03:31 PM, Graeme Geldenhuys wrote: > > On 2016-09-28 22:59, David Emerson wrote: > >> Alternately, if I give a GUID does an interface not automatically become > >> COM + managed? > > > > No definitely not! The GUID just hel

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Martin Schreiber
On Wednesday 28 September 2016 21:40:39 Lars wrote: > On Wed, September 28, 2016 2:24 am, Graeme Geldenhuys wrote: > > On 2016-09-28 08:38, David Emerson wrote: > >> I'm testing out CORBA interfaces before changing all my code to use > >> them (I would prefer not to have managed types for interface

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread David Emerson
On 09/28/2016 03:31 PM, Graeme Geldenhuys wrote: On 2016-09-28 22:59, David Emerson wrote: Alternately, if I give a GUID does an interface not automatically become COM + managed? No definitely not! The GUID just helps the compiler or RTL identify an Interface. Oh fabulous! Thanks much. I def

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Lars
On Wed, September 28, 2016 3:44 pm, Graeme Geldenhuys wrote: > Others like the fact that COM Interfaces are reference counted - they > sometimes come in handy, but do tend to complicate matters much more. > And Corba interfaces.. you have to implement that yourself? I found this http://www.lenh

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Graeme Geldenhuys
On 2016-09-28 22:59, David Emerson wrote: > Is it possible to use Supports / QueryInterface / GetInterface / > something else, without having a GUID? I'm not sure. I just had a look at my code. It seems all my [Corba] Interface have GUID's defined too. I never noticed - probably down to habit from

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread David Emerson
On 09/28/2016 01:24 AM, Graeme Geldenhuys wrote: On 2016-09-28 08:38, David Emerson wrote: I'm testing out CORBA interfaces before changing all my code to use them (I would prefer not to have managed types for interfaces). I've been using CORBA style interfaces for years, and it was always wor

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread David Emerson
On 09/28/2016 12:40 PM, Lars wrote: Curious, where do corba interfaces come in handy ? When can you use them that object oriented code won't offer the same features? For multiple inheritence, since fpc does not support multiple inheritence without interfaces. Interfaces are an addition to obj

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Graeme Geldenhuys
On 2016-09-28 20:40, Lars wrote: > i.e. what's the basic point of using an interface compared to objects and > inheritance and procedures? Where do they really shine? Not to repeat tons of information already available on the Internet - Google is your friend. Objects, Inheritance and Interfaces a

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Michael Van Canneyt
On Wed, 28 Sep 2016, Lars wrote: On Wed, September 28, 2016 2:24 am, Graeme Geldenhuys wrote: On 2016-09-28 08:38, David Emerson wrote: I'm testing out CORBA interfaces before changing all my code to use them (I would prefer not to have managed types for interfaces). I've been using CORB

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Lars
On Wed, September 28, 2016 2:24 am, Graeme Geldenhuys wrote: > On 2016-09-28 08:38, David Emerson wrote: > >> I'm testing out CORBA interfaces before changing all my code to use >> them (I would prefer not to have managed types for interfaces). >> > > I've been using CORBA style interfaces for year

Re: [fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread Graeme Geldenhuys
On 2016-09-28 08:38, David Emerson wrote: > I'm testing out CORBA interfaces before changing all my code to use them > (I would prefer not to have managed types for interfaces). I've been using CORBA style interfaces for years, and it was always worked well for me. I must add, I never use the is/

[fpc-pascal] corba interfaces - is/as not working properly

2016-09-28 Thread David Emerson
Hi all, I'm testing out CORBA interfaces before changing all my code to use them (I would prefer not to have managed types for interfaces). However I am running into a glitch. Testing "if (my_object is i_some_interface)" is always returning true, even when the object does not implement the i