Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1

Elronnd elronnd at elronnd.net
Sat Jan 15 10:20:55 UTC 2022

On Saturday, 15 January 2022 at 10:15:16 UTC, Timon Gehr wrote:
> The issue is not that addresses might change, it's that they 
> depend on global state. Therefore, e.g., iteration order for an 
> associative array will depend on global state too. It's just 
> not `pure`.

It seems to me that any data passed from an impure function to a 
pure one will depend on global state.  And d has no problem with 
pure functions doing things to pointers that are passed to them 
anyway.  So the current state seems fine (or, at least, fully 

More information about the Digitalmars-d mailing list