dmd 1.065 and 2.050 release

Simen kjaeraas simen.kjaras at gmail.com
Sat Oct 30 11:14:36 PDT 2010


Peter Alexander <peter.alexander.au at gmail.com> wrote:

> On 29/10/10 7:54 PM, Lutger wrote:
>> Walter Bright wrote:
>>
>>> This is primarily a bug fix release.
>>
>> And relaxed purity rules. They rule!
>
> What relaxations were made, exactly?

Pure functions now only require that no globals are used in their body, and
that any called functions also be pure. A stronger version is created by
having only parameters that are castable to immutable. The former only
makes it easy to reason about code, the latter is memoizable, can safely be
executed in parallel, etc.

-- 
Simen


More information about the Digitalmars-d-announce mailing list