www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17806] New: processAllocator getter will override set value

https://issues.dlang.org/show_bug.cgi?id=17806

          Issue ID: 17806
           Summary: processAllocator getter will override set value if it
                    was set before getter was called at least once
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: stojkovic.igor gmail.com

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.

--
Sep 04 2017