3 ms·
So why can't I build C++ as .NET? Actually doing a big of searching I think you originally could but for some reason they removed it.
by api 9y ago
So why can't I build C++ as .NET?
Actually doing a big of searching I think you originally could but for some reason they removed it.
- int_19h 9y agoYou can build C++ as .NET, absolutely. So far as I know, it can handle everything in the Standard except for setjmp/longjmp. All it takes is compiling with /clr:pure. What you're referring to is probably C++/CLI, which wasn't removed, but it hasn't really been updated for a while. C++/CLI is a set of language extensions that make it possible to interface with the .NET object model. If we go feature by feature, the .NET type system and bytecode has: - unsigned types - raw (non-GC) data pointers with pointer arithmetic - raw function pointers (distinct from delegates) - structs and unions - dynamic memory allocation on the stack (like alloca) - vararg functions