New code trying to use the old one would have crashed though. Think of the bigger picture, compatibility is 2-way.
On Sat, Oct 15, 2011 at 4:19 PM, Saul Rennison <saul.renni...@gmail.com> wrote: > I just don't understand why the version number was bumped by Valve if old > code using the interface would still work perfectly with the updated one. > > Sorry if I'm coming off the wrong way, I'm genuinely interested in why the > version was changed :p > > On Saturday, 15 October 2011, Nicholas Hastings <nshasti...@gmail.com> > wrote: >> Yes, it's backwards compatible. >> >> That has nothing to do with the version#. As Asher said, the code was >> specifically asking for the lower version. He could have accepted any >> version and hoped that any newer were backwards compatible, which would have >> been fine. >> >> On 10/15/2011 10:35 AM, Saul Rennison wrote: >> >> But the point is the interface is backwards compatible because it's just >> appending an entry to the vtable. >> >> On Saturday, 15 October 2011, Nicholas Hastings <nshasti...@gmail.com> >> wrote: >>> In this case, not really. >>> >>> It's a safety. If you compile against version 2 of something and check >>> the version, you can safely call functions at the end that aren't in v1. If >>> you happen to load v1, don't check version, and try to call one, badness >>> ensues. >>> >>> On 10/15/2011 10:03 AM, Saul Rennison wrote: >>> >>> The interface version doesn't need to be bumped if the vtable hasn't >>> changed.. does it? >>> >>> On Saturday, 15 October 2011, Nicholas Hastings <nshasti...@gmail.com> >>> wrote: >>>> They did change it properly. They both added a function (to the end, to >>>> avoid breakage) and bumped the version number (to ServerGameClients004). >>>> >>>> virtual void ClientSpawned( edict_t *pEntity ) = 0; >>>> >>>> at the end, right after ClientCommandKeyValues. >>>> >>>> On 10/14/2011 11:55 PM, Ronny Schedel wrote: >>>>> >>>>> Hello, >>>>> >>>>> does anyone know what is changed in the IServergameclients interface, >>>>> it does not load anymore? >>>>> >>>>> When do they learn how to change interfaces in the proper way? >>>>> >>>>> Best regards >>>>> >>>>> Ronny Schedel >>>>> >>>>> _______________________________________________ >>>>> To unsubscribe, edit your list preferences, or view the list archives, >>>>> please visit: >>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>> >>>> >>>> >>>> _______________________________________________ >>>> To unsubscribe, edit your list preferences, or view the list archives, >>>> please visit: >>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>> >>>> >>> >>> -- >>> >>> >>> Kind regards, >>> Saul Rennison >>> >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>> >>> >>> >> >> -- >> >> >> Kind regards, >> Saul Rennison >> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> >> > > -- > > > Kind regards, > Saul Rennison > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders