Pascal style forces to declare variables as below:Ĭonstructor creates actual object, destructor releases it and operator ->() provides access to actual TVec object. Extra features for C++ developersīy analogy with smart pointers in C++, MtxVec library defines shell classes in MtxVecCpp.h Vector and Matrix for TVec and TMtx classes respectively. C++ developers may easily declare vectors and matrices as local variables and enjoy the support for operator overloading. MtxVecCpp.h is designed to merge native C++ coding style and part of MtxVec library, which is coded in Delphi. However C++ syntax allows more flexible language constructs than pascal. TVec and TMtx classes are written in Delphi and C++ Builder generates appropriate header files automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |