Re: Why Cant we add a function to an existing Interface?
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Thu, 28 Dec 2006 09:25:28 -0800
By adding a function you are breaking binary compatibility. Basically you
are changing the definition of the interface and interfaces are supposed to
be immutable.
The reason this is important is that there may be a client that codes using
your interface definition and calls the new function. However he is using
the original component which doesn't have this function. Obviously his code
is going to crash even though he has done nothing wrong; he has an
expectation that the interface has been fully defined and implemented.
Brian
"Babu" <Babu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5C9D431C-5317-4BA2-8F59-ADCB02E76AFC@xxxxxxxxxxxxxxxx
Isit possible to add a function to existing interface?
For example already i have published my component to a customer which
supports only one interface.
Now if i add some more functions to that interface and if i republish the
component, is it going to affect the customer?
If so whats the reason for that?
.
- Follow-Ups:
- Prev by Date: web browser control and frameset
- Next by Date: Re: Why Cant we add a function to an existing Interface?
- Previous by thread: web browser control and frameset
- Next by thread: Re: Why Cant we add a function to an existing Interface?
- Index(es):
Relevant Pages
|