Most basic nothrow, pure, @safe functions?

deadalnix deadalnix at gmail.com
Thu Mar 20 19:02:15 PDT 2014


On Friday, 21 March 2014 at 02:00:11 UTC, Walter Bright wrote:
> On 3/20/2014 6:40 PM, Steven Schveighoffer wrote:
>> How do they affect global state?
>
> Mutexes implicitly share state. It's the reason they exist. 
> They can't be pure, because pure functions don't share state.

If you got that road, you can't allow memory allocators to be
used in pure code. That isn't a good argument.


More information about the Digitalmars-d mailing list