Differences
This chapter contains differences between C++ and SC, that should help
to avoid some pitfalls. SC is similar to C++, many schamas used in C++ may be used in SC, but is
much simplier. The elements that are not present in SC but present in C++ are not listed here.
-
Logical operation sequences. In SC a whole logical expression is evaluated (in C++ only until it is necessary)
-
It is not possible to create arrays on the stack.
-
new operator creates a managed object, that is destroyed when it is safe.
-
native pointers are treated as 1 element arrays, no access possible to other elements.
-
multidimensionl arrays created by new operator are allocated for every specified dimesion.
-
only keywords specified in this documentation are valid SC keywords.
-
It is not possible in SC to create a reference to a temporary object.