[Issue 7432] DMD allows variables to be declared as pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 26 17:22:04 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7432
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-26 17:22:02 PDT ---
The problem is there can be a pure block such as this one in object.di:
class TypeInfo_Struct : TypeInfo
{
@safe pure nothrow
{
uint function(in void*) xtoHash;
bool function(in void*, in void*) xopEquals;
int function(in void*, in void*) xopCmp;
string function(in void*) xtoString;
uint m_flags; // << problem
}
}
I don't know whether the front-end makes any difference between declarations in
attribute blocks and those who have a direct attribute in one statement. If
not, it's probably not fixable without breaking code.
--
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