Thread overview | |||||
---|---|---|---|---|---|
|
December 17, 2012 [Issue 9168] New: AA.length is impure and unsafe | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from lt.infiltrator@gmail.com 2012-12-16 22:18:32 PST --- 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: ------- |
December 17, 2012 [Issue 9168] AA.length is impure and unsafe | ||||
---|---|---|---|---|
| ||||
Posted in reply to lt.infiltrator@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=9168 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2012-12-17 04:08:57 PST --- I think this a duplicated. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 19, 2012 [Issue 9168] AA.length is impure and unsafe | ||||
---|---|---|---|---|
| ||||
Posted in reply to lt.infiltrator@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=9168 lt.infiltrator@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from lt.infiltrator@gmail.com 2012-12-18 17:13:09 PST --- *** 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: ------- |
Copyright © 1999-2021 by the D Language Foundation