[Issue 8690] Can't access a global enum size_t from a pure function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 16 07:28:07 PST 2013


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
           Platform|x86                         |All
         OS/Version|Windows                     |All


--- Comment #1 from yebblies <yebblies at gmail.com> 2013-01-17 02:28:05 EST ---
While this probably should work, it's tricky to implement because semantic has
to work out what foo is to find length, and that triggers the purity check
_long_ before it works out length is constant.

Workaround: use typeof(foo).length

-- 
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