Support for Programming by Contract
Explain the Support for Programming by Contract or pbc?
Expert
Programming by Contract can be supported on several levels, depending on the programming language and available third-party tools.
While direct support by language provides the most powerful support for contracts (e.g., loop variants/invariants), it depends on languages or language extensions that are not mainstream, and therefore might not be suitable for all projects. The two statically typed (compiled), publicly available programming languages supporting PbC at this level are Eiffel (Eiffel Software) and D (Digital Mars). Both are contemporary object-oriented languages, implemented in proprietary and open source compilers, supporting several hardware architectures and operating systems. Eiffel provides deeper PbC support (e.g., loop variants and invariants), and loosely resembles Pascal/Ada in terms of declaration and expression syntax. D resembles C/C++, but is not yet widely used and is less mature than Eiffel. Both languages have established user and developer communities, but cannot be considered as mainstream as C++.
While a PbC proposal exists for the upcoming C++0x standard (Abrahams et al. 2005), it is not yet clear if and when compiler vendors will support it. The syntax resembles D, in that it requires grammar extensions:
Normal 0 false false
Coriolis principle for mass flow meter: This meter employs the Coriolis Effect to measure the quantity of mass moving via the element. The substance to be calculated runs via a U-shaped tube which is caused to vibrate in a perpendicular direction to f
Choosing SAFM: We chose SAFM for several reasons: High criticality—it is capable of determining a safe landing trajectory for the shuttle autonomously in case of a failure requiring an abort during asc
Where did racial segregation and discrimination exist in USA in the year 1950? Describe it?
Assembler: An assembler is a program which takes fundamental computer instructions and transforms them into a pattern of bits which the computer's processor can utilize to execute its fundamental operations. Some people state such instructions assembl
18,76,764
1923878 Asked
3,689
Active Tutors
1431828
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!