Thread overview
[Issue 3434] New: +f(); should be an invalid statement.
Oct 22, 2009
kennytm@gmail.com
Feb 20, 2012
yebblies
Feb 05, 2013
Andrej Mitrovic
October 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3434

           Summary: +f(); should be an invalid statement.
           Product: D
           Version: 2.035
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kennytm@gmail.com


--- Comment #0 from kennytm@gmail.com 2009-10-22 07:53:58 PDT ---
As titled. The following code should cause a compile error.



int f() { return 0; }

void main () {
//      -f(); // Error: - has no effect in expression (-f())
        +f(); // But this is valid... ?
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3434


yebblies <yebblies@gmail.com> changed:

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


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-21 02:39:46 EST ---
Why?  It does _nothing_ and doesn't survive beyond semantic.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3434


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |INVALID


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-04 18:24:35 PST ---
I don't see the reason for it either, closing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------