Comparison of ALGOL 68 and C++
C++ doesn't have:
- PROC โ first class nested functions (emulation due to local definitions of class types, which could be functors; also, C++11 has lambda functions),
- OP and PRIO โ definable operator symbols and priorities,
- garbage collection (could be emulated with help of smart pointers),
- use before define,
- formatted transput using complex formatting declarations,
- := โ assignment operation symbol (to avoid confusion with equal sign),
- array (and slice operations on them, but in layered libraries),
- automatic UNIONs,
- CASE expressions,
- nonlocal GOTO
- intuitive declaration syntax due to its origin from C.
ALGOL 68 doesn't have:
- public/private struct member access protection,
- overloaded procedures (in contrast to operators),
- explicit memory deallocation,
- forward declarations (use before definition is allowed)
- textual preprocessing (e.g. macros),
- distinct reference and pointer types,
- comment lines (only bracketed comments),
- struct inheritance, struct member functions, virtual functions.
- destructors, exceptions, templates, namespaces, structured loop exits
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.