[Issue 4231] Solitary opUnary Postincrement and Postdecrement user defined operators are broken.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 1 12:26:57 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4231


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance
                 CC|                            |clugdbug at yahoo.com.au
            Summary|Solidary opUnary            |Solitary opUnary
                   |Postincrement and           |Postincrement and
                   |Postdecrement user defined  |Postdecrement user defined
                   |operators are broken.       |operators are broken.


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-06-01 12:26:55 PDT ---
Root cause: the temporary variable should not be created if the return value
isn't required. This would mean that when the value is not required,
preincrement and postincrement are identical, resulting in optimal performance.

Note that the same situation (no return value required) occurs inside comma
expressions.

-- 
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