TypeInfo.getHash(): use const scope#2139
Conversation
|
Thanks for your pull request, @WalterBright! 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. |
wilzbach
left a comment
There was a problem hiding this comment.
Couldn't we fix in with -dip1000 to mean scope const again? At the moment in has become a bit useless ...
src/object.d
Outdated
| assert(!(flag & (flag - 1)) && !(flag & ~(flag - 1) << 1)); | ||
| } | ||
| do | ||
| body |
There was a problem hiding this comment.
Why? Use of body has been deprecated in favor of do with https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1003.md
98b41b9 to
affa409
Compare
|
I don't think we can fix |
|
Erm, sure, this change is probably benign, but how do you expect to ever make |
Start on making TypeInfo methods safe. Should be no problem since users won't be deriving from it.