DMD 1.038 and 2.022 releases

Simen Kjaeraas simen.kjaras at gmail.com
Thu Dec 18 04:30:35 PST 2008


On Thu, 18 Dec 2008 13:27:16 +0100, Christopher Wright  
<dhasenan at gmail.com> wrote:

> Simen Kjaeraas wrote:
>> On Thu, 18 Dec 2008 07:01:49 +0100, Steven Schveighoffer  
>> <schveiguy at yahoo.com> wrote:
>>
>>> Walter wants pure functions that have no side effects *AND* cannot be
>>> affected by other functions' side effects.  Your example fails the  
>>> second
>>> requirement.
>>  I should have put that in there as well. My point was that a delegate
>> /can be/ as pure as a normal function.
>
> Right, but the compiler might have to take it on faith that the delegate  
> is really pure.

Which is why I said a cast might be necessary.

-- 
Simen


More information about the Digitalmars-d-announce mailing list