[Issue 4031] Should be able to access const value-type globals from pure functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 2 12:58:48 PDT 2011


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |patch
                 CC|                            |yebblies at 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 <yebblies at 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: -------


More information about the Digitalmars-d-bugs mailing list