http://d.puremagic.com/issues/show_bug.cgi?id=4031


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |patch
                 CC|                            |yebbl...@gmail.com
            Summary|Tidier management of static |Should be able to access
                   |variables in pure functions |const value-type globals
                   |                            |from pure functions


--- Comment #1 from yebblies <yebbl...@gmail.com> 2011-07-03 05:53:47 EST ---
https://github.com/D-Programming-Language/dmd/pull/194

This allows static and global value type variables to be used in pure
functions.

I'm not sure if disabling mutable static variables inside pure functions is
valid, as some actions on them (eg. returning their address) do make sense. 
They can also be accessed from any statements inside debug {}.  Please open a
new report for that if you would like it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to