[Issue 17806] New: processAllocator getter will override set value if it was set before getter was called at least once
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Sep  4 18:47:28 UTC 2017
    
    
  
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 at puremagic.com
          Reporter: stojkovic.igor at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list