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

Simen Kjaeraas <simen.kja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #14 from Simen Kjaeraas <simen.kja...@gmail.com> ---
True - access to the BigInt would need to be protected somehow, and letting
abs(shared BigInt) simply compile without warning signals to the user that it's
perfectly safe, while tearing could still happen (unsynced ptr/length for the
data field, or wrong sign). The way shared works in D today, it's simply the
wrong choice. Thanks for enlightening me! :)

Closing this issue as wontfix because while important parts of the original
issue are fixed, the current name indicates shared only, and forcing the user
to cast (and thus hopefully think about locking or otherwise limiting access).

--

Reply via email to