[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 108404] checking for expressions with side effects
From:       Adrián Chaves Fernández <adriyetichaves () gmail ! com>
Date:       2012-07-26 5:33:26
Message-ID: bug-108404-40295-GBuEStWkgX () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=108404

Adrián Chaves Fernández <adriyetichaves@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adriyetichaves@gmail.com

--- Comment #1 from Adrián Chaves Fernández <adriyetichaves@gmail.com> ---
Implementing this feature right would be really hard, I think. There are
several expressions which might have side effects, and we cannot just warn
about one of them and not the others.

- Assignment operator (=).
- Increment and decrement (a++, ++a, a--, --a).
- Compound assignment operators (+=, -=, *=, /=, etc.).
- Function and method calls.

Not to mention operator overloads, that might result in some of those operators
above not having side-effects anymore, and others gaining them.

So, in my opinion, the right implementation would be too hard for the benefits
it would bring, and no uncomplete or faulty implementation should be done.

I suggest this issue is closed as "Won't Fix". What do you say, Vladimir?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic