TrapC is an extension of the C programming language that removes the key phrases goto
and union
, provides the key phrases lure
and alias
, and adopts a number of options from C++ that enhance security equivalent to constructors and destructors, mentioned Rowe. It additionally offers a few new options not in C or C++. Despite being a minimalist programming language with the identical variety of key phrases as C, TrapC has a stunning quantity of C++ code compatibility, he mentioned.
Rowe offered TrapC at an ISO C assembly this week. Developers can obtain a TrapC whitepaper and provide Rowe suggestions. According to the whitepaper, TrapC’s reminiscence administration is computerized and can’t leak reminiscence. Pointers are lifetime-managed, not garbage-collected. Also, TrapC reuses a number of code security options from C++, notably member capabilities, constructors, destructors, and the new
key phrase.
TrapC will not be the one try to cope with reminiscence security in C or C++. The C++ Partnership labored on its Safe C++ Extensions venture to treatment C++reminiscence security. Rowe mentioned that different proposals don’t provide the great reminiscence security provided by TrapC.