Conversation
934c08e to
9cf04ef
Compare
|
This front-end cleanup is necessary for: |
src/expression.d
Outdated
There was a problem hiding this comment.
"Won't be generated" or "Isn't generated"
4fb71d0 to
221d058
Compare
221d058 to
46700a6
Compare
src/expression.d
Outdated
There was a problem hiding this comment.
What's with the commented out assert?
There was a problem hiding this comment.
It was a junk. Removed.
46700a6 to
a1e8b14
Compare
2ce3a57 to
20f963b
Compare
|
Ping to @yebblies and @klickverbot . In The logic will also fit to |
20f963b to
8b83389
Compare
c8d03fb to
6c39247
Compare
6831881 to
064bb1a
Compare
|
Updated to fix all settings of Usually, when a function symbol appears in expression, e.g. |
| bool hasOverloads; | ||
|
|
||
| extern (D) this(Loc loc, Dsymbol s, bool hasOverloads = false) | ||
| extern (D) this(Loc loc, Dsymbol s, bool hasOverloads = true) |
There was a problem hiding this comment.
Maybe it's better just to force hasOverloads to be explicitly passed?
There was a problem hiding this comment.
I don't think so. Half of hasOverloads would need to be set to false for VarDeclarations. For them, explicit argument passing is just verbose. The default argument true works for good default behavior.
064bb1a to
2d5290e
Compare
…on names Grep-ed `new (Dsymbol|Var|DotVar|SymOff|Delegate)Exp` and has checked them all. Usually, when a function symbol appears in expression, e.g. `func.d()`, `&func` etc, the `func` has overload candidates. So, usually `hasOverloads` field should be set to `true` until it's resolved. Changing their default arguments to `true`, and supply `false` explicitly around internal code generations.
2d5290e to
0364953
Compare
|
Auto-merge toggled on |
|
Ok, well on the whole I have nothing against this. |
|
Thanks! |
Remove
Dsymbol.hasOverloads()because it's confusing method.