Change mangling of extern(C++) ctor.#1357
Change mangling of extern(C++) ctor.#1357redstar wants to merge 1 commit intoldc-developers:ltsmasterfrom
Conversation
|
@kinke Does this help for ctor mangling? |
|
Thx Kai, I'll check it over the weekend. |
|
Without also matching the ABI, matching mangling is a little dangerous. |
|
That's what I thought too. You mean the different destruction rules, right? Does the front-end support argument destruction by the caller for |
|
I'm not sure. The issue I've had trouble with is that D will blit |
I'd think that a C++ ctor cannot make any assumptions about the initial payload, so I'd consider blitting to be useless (and affecting runtime a bit when calling it from D) but not troublesome.
That's what I wanted to hear - very good. |
When calling a ctor written in C++ from D, yes. But when going the other way the ctor may not init all fields. |
True. That could be compensated for when generating an |
This is a part of issue ldc-developers#1312.
|
Closing in favor of dlang/dmd#5884. |
This is a part of issue #1312.