Check whether function/delegate uses any shared or global variables

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 12 04:30:42 PST 2016


On 2016-12-12 12:15, Nicholas Wilson wrote:

> there is the pure function attribute, how ever this still allows you to
> use globals *if you pass them as parameters to the function*.

And it can access immutable global data.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list