Proposal: Relax rules for 'pure'
Tomek Sowiński
just at ask.me
Thu Sep 23 13:35:23 PDT 2010
dsimcha napisał:
> 1. The documentation that says that the parameters need to be convertible
> to immutable is outdated. This was changed a while ago to only requiring
> const.
Good to know. Yet, I wonder why such changes are not discussed on this NG and at the very
least announced in the change log...
On topic: this means a pure function can take a reference to data that can be mutated by
someone else. So we're giving up on the "can parallelize with no dataraces" guarantee on
pure functions?
--
Tomek
More information about the Digitalmars-d
mailing list