On 16/02/12 11:16, Walter Bright wrote:
On 2/16/2012 1:47 AM, Don Clugston wrote:
I'm less sure about pure, though. What if (for example) you have a
struct which
is just an index into a global table? Like a Windows handle, for
example. That
should still work.
Without pure, associative arrays cannot work reliably.
That's a good argument.
I'd suggest that if one is relying on a mutable global array, that one
shouldn't use opEquals, opCmp, etc., and should use functions with other
names.
I would say, that the solution would be a (library) implementation of
logical pure.