Objective-C is said to be a pure superset of C. What is the meaning of this? What does the superset mean in this context? What other examples of such relationships can be cited (except C ++ and Objective-C ++)?
For example in this directory
Objective-C is said to be a pure superset of C. What is the meaning of this? What does the superset mean in this context? What other examples of such relationships can be cited (except C ++ and Objective-C ++)?
For example in this directory
If some language X (technology) is a pure superset of Y, then this means that the program written in Y will be compiled by the compiler from X and work without any differences. In the case of programming languages, this also means that if we write code in X, then we can mix it (sometimes completely free) with Y in one file.
Contrary to a common misconception, C ++ is not a superset of pure C. There are many examples of code where it will either not compile, or the compiled code will produce different results. The classic example is in si sizeof('a') == sizeof(int)
(that is, usually 4), and in C ++, the equality sizeof('a') == sizeof(char)
(that is, usually 1).
Source: https://ru.stackoverflow.com/questions/551430/
All Articles