Check whether function/delegate uses any shared or global variables

Nikhil Jacob via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 12 06:13:10 PST 2016


On Monday, 12 December 2016 at 12:30:42 UTC, Jacob Carlborg wrote:
> 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.

Thank you all for the help


More information about the Digitalmars-d-learn mailing list