Make RootObject equals and toChars const#10293
Conversation
|
Thanks for your pull request and interest in making D better, @edi33416! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10293" |
|
Not all sources look to be updated, headers should be updated as well too if they haven't been. |
I'm sorry, but what do you mean by this?
I haven't updated the headers as they have dropped the |
I think I meant not, but autocomplete got in the way. There were some D related errors at last look. |
It does on Windows and I would be surprised if it doesn't elsewhere (e.g. for overloads), but it is usually irrelevant for virtual function calls if the vtbl is generated on the D side. |
|
@rainers do you know why the tests are failing? I didn't manage to find the |
|
Line 252 in 4abeae0 |
I hadn't rebase with master.. |
a9fb413 to
bd34cc5
Compare
|
LGTM. Please squash commits. (Or do we use "squash and merge"? I suspect it will just concatenate commit messages that don't look to nice). |
|
I'll just do the squashing manually. |
|
@rainers : FYI, Using |
I thought the squash and merge will keep only the first commit message. That's why I didn't do it myself and why I just named the future commits "qf".. Will pay more attention in the future. Thanks @thewilsonator for doing it for me |
This PR is useful to the the C++ header generator to generate the dmd frontend header files that are used by
gdc.The issue that I'm attempting to solve: D has function covariance, but C++ does not. What this means is that if I have the following D code
the generated header will look like
Note that
Bhasvoid foo() constCompiling this code with
g++ -Woverloaded-virtual(asgdcdoes) will result in the following warning