Bug 17806 – processAllocator getter will override set value if it was set before getter was called at least once
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-09-04T18:47:28Z
Last change time
2018-04-25T02:34:10Z
Assigned to
No Owner
Creator
Igor Stojkovic
Comments
Comment #0 by stojkovic.igor — 2017-09-04T18:47:28Z
So if you do:
auto newAllocator = whatever;
processAllocator = newAllocator;
bool isOk = (processAllocator is newAllocator);
isOk will be false. But if you do:
auto tmp = processAllocator;
auto newAllocator = whatever;
processAllocator = newAllocator;
bool isOk = (processAllocator is newAllocator);
Then isOk will be true.
Comment #1 by github-bugzilla — 2018-04-25T02:34:09Z