DIP61: Add namespaces to D
Michel Fortin via Digitalmars-d
digitalmars-d at puremagic.com
Sat Apr 26 13:47:00 PDT 2014
On 2014-04-26 19:13:52 +0000, Walter Bright <newshound2 at digitalmars.com> said:
> I think that trying to be compatible with C++ templates is utter
> madness. But we can handle namespaces.
I'd argue that templates aren't the difficult part. Having struct/class
semantics ABI-compatible with C++ is the hard part (constructors,
destructors, exceptions). Once you have that, the difference between
vector_of_int and vector<int> just becomes mangling. Same thing for
template functions.
--
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca
More information about the Digitalmars-d
mailing list