Namespaces
Variants
Actions

Backward compatibility

Jump to: navigation, search
Article Metadata

Article
Created: ltomuta (08 Mar 2007)
Last edited: hamishwillee (27 Sep 2012)
Backward compatibility means compatible with earlier versions. I.e. an application built with/for version 1.0 of an SDK/system is expected to work as designed on the new version 2.0 of the same system.

Binary Compatibility

Binary compatible means that code built for an older version will run on a newer version without rebuilding.

Few examples of binary-incompatible changes:

  • removing a public/protected method/member
  • changing access specifiers to more restrictive
  • re-ordering exported functions; new exports should be added after the old ones
  • changing/adding/removing/re-ordering virtual functions
  • order of data members in a class is not important, just that the sum of their size (i.e. the class size) doesn't change.


Source Compatibility

Source compatible means that the code that depends on your component can be still built without changes on a newer version of your component.

Few examples of source-incompatible changes:

  • removing a public/protected method/member
  • changing access specifiers to more restrictive
  • changing return type of functions
  • changing function arguments
  • changing constness


See also


Forward compatibility

This page was last modified on 27 September 2012, at 07:26.
139 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved