To help LDC/GDC

Manu turkeyman at gmail.com
Tue Apr 9 04:26:24 PDT 2013


On 9 April 2013 20:50, Timon Gehr <timon.gehr at gmx.ch> wrote:

> On 04/09/2013 12:28 PM, Manu wrote:
>
>> ...
>>
>>
>> There's nothing 'pure' about a function that has side effects.
>>
>
> If it has the same side effects every time it is called with the same
> arguments, then there is something pure about it.


But it doesn't. It could do anything when called a second time, same
arguments or not.
The only thing it can't do is escape a variable. That sounds more like
'scope' to me than 'pure'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130409/883cc4a4/attachment.html>


More information about the Digitalmars-d mailing list