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
Please provide the answers for the following assignment in details.
Model checking is the collection of methods for analyzing an abstract representation of a system to determine the validity of one or more properties of interest. Much specifically, it has been defined as an algorithmic formal verification technique fo
How could database technology be the basis for implementing MOM queue elements?
Responding Through Talk: Learning is a social activity, and the cornerstone of social activity is talk. Linguist Michael Halliday (1999) contended that language is used not only to gain access to communities but also to create them. T
How odors of the flower petals assist pollination?
18,76,764
1947400 Asked
3,689
Active Tutors
1430735
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!