Translate _d_arraysetlengthT to template#10106
Conversation
|
Thanks for your pull request and interest in making D better, @Vild! 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#10106" |
1d846a9 to
118b4a9
Compare
| Expression id = new IdentifierExp(ale.loc, Id.empty); | ||
| id = new DotIdExp(ale.loc, id, Id.object); | ||
| id = new DotIdExp(ale.loc, id, hook); | ||
| id = id.expressionSemantic(sc); |
There was a problem hiding this comment.
BTW, maybe the code above can somehow be merged into verifyHookExists?
Expression id = verifyHookExist(exp.loc, *sc, hook, "resizing arrays", Id.object);
if (!id)
return setError();There was a problem hiding this comment.
Maybe rename it though and also provide a way to get the hook without error reporting:
Expression id = findRuntimeHook(... bool printError);
There was a problem hiding this comment.
I don't think this PR is the correct place to change the the implementation of verifyHookExist.
It is already used for the already implemented hook lowerings, so I think it would be better to change it in another PR.
afd3475 to
481f4a0
Compare
481f4a0 to
e309ec4
Compare
|
This patch doesn't compile DCD currently because it uses |
What, specifically, is the problem that the dinterpret hack is trying to avoid? Can an |
|
So the 'hack' is basically turning the The problem now was that I didn't test that the code worked with I got it working by adding But sadly now another problem arose, |
e309ec4 to
ce8f838
Compare
ce8f838 to
1ffab33
Compare
|
It currently fails during the I cannot reproduce this locally, so I'm not sure what to do. |
Try testing both debug and release builds. |
That was the problem, I only tested it with debug and it got triggered only on release builds ( |
1ffab33 to
a130014
Compare
|
Is this good to go? |
Signed-off-by: Dan Printzell <xwildn00bx@gmail.com>
Not fully yet, I need to fix the |
a130014 to
0240596
Compare
|
@thewilsonator It is done now :) |
0240596 to
53bbd90
Compare
53bbd90 to
746e39b
Compare
Signed-off-by: Dan Printzell <xwildn00bx@gmail.com>
Signed-off-by: Dan Printzell <xwildn00bx@gmail.com>
Signed-off-by: Dan Printzell <xwildn00bx@gmail.com>
746e39b to
d1bf9bf
Compare
|
Any more changes needed? |
JinShil
left a comment
There was a problem hiding this comment.
The workarounds bug me, but they are isolated and I'm not able to come up with anything better.
druntime PR: dlang/druntime#2656
The
exp.e1.type.toBasetype().nextOf().isZeroInitcheck is now inside of the runtime hook.