On Monday, 12 December 2016 at 11:02:21 UTC, Nikhil Jacob wrote:
Is there any way to check whether a function/delegate passed to a function uses any shared or global variables ?

I could not find any in std.traits.

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

see https://dlang.org/spec/function.html#pure-functions


Reply via email to