digitalmars.D.bugs - [Issue 9168] New: AA.length is impure and unsafe
- d-bugmail puremagic.com (27/27) Dec 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9168
- d-bugmail puremagic.com (10/10) Dec 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9168
- d-bugmail puremagic.com (11/11) Dec 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9168
http://d.puremagic.com/issues/show_bug.cgi?id=9168
Summary: AA.length is impure and unsafe
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody puremagic.com
ReportedBy: lt.infiltrator gmail.com
This code fails to compile:
------------------------
void main() pure safe {
int[int] aa;
aa.length == 0;
}
------------------------
/home/c213/c231.d(3): Error: pure function 'main' cannot call impure function
'length'
/home/c213/c231.d(3): Error: safe function 'main' cannot call system function
'length'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9168
bearophile_hugs eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs eml.cc
I think this a duplicated.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 17 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9168
lt.infiltrator gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
*** This issue has been marked as a duplicate of issue 5555 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 18 2012









d-bugmail puremagic.com 