https://issues.dlang.org/show_bug.cgi?id=4407
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|D1 D2 |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=4407
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4407
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4407
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4407
--- Comment #4 from bearophile_h...@eml.cc 2011-07-11 10:03:16 PDT ---
One example of bug related to x=x; found inside the good QT libs:
PassRefPtrStructure
Structure::getterSetterTransition(Structure* structure)
{
...
RefPtrStructure
http://d.puremagic.com/issues/show_bug.cgi?id=4407
--- Comment #3 from bearophile_h...@eml.cc 2010-10-01 16:57:39 PDT ---
Another similar class of bugs, suggested by JimBob:
class Foo {
int m_x;
this(int x) {
int m_x = x;
}
}
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=4407
--- Comment #1 from bearophile_h...@eml.cc 2010-09-20 17:32:46 PDT ---
To keep the language semantics more uniform (instead of special-casing just in
methods), all redundant assignments may be flagged as errors:
void main() {
int x;
x
http://d.puremagic.com/issues/show_bug.cgi?id=4407
--- Comment #2 from bearophile_h...@eml.cc 2010-09-20 17:47:19 PDT ---
It's present among the Semantic Errors of Java code in the Google Web Toolkit
too: