Thread overview
[Issue 10320] New: Warning for old-style operator overloading methods definition
June 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10320

           Summary: Warning for old-style operator overloading methods
                    definition
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2013-06-10 04:49:26 PDT ---
I suggest to introduce a warning that lists all the usages of the old-style operator overloading.

(Later they will become deprecated, and then they will be removed (or
conditionally compiled out for D2 if you want to keep the code for D1 for some
more time)).

Rationale: to simplify the D2 compiler.

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



--- Comment #1 from bearophile_hugs@eml.cc 2013-07-02 01:01:58 PDT ---
Cases like in this thread show that it's important to give a warning now:

http://forum.dlang.org/thread/hwfzaysrfxiiumppxwkt@forum.dlang.org

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


monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra@gmail.com
           See Also|                            |http://d.puremagic.com/issu
                   |                            |es/show_bug.cgi?id=9257


--- Comment #2 from monarchdodra@gmail.com 2013-07-02 04:51:42 PDT ---
(In reply to comment #1)
> Cases like in this thread show that it's important to give a warning now:
> 
> http://forum.dlang.org/thread/hwfzaysrfxiiumppxwkt@forum.dlang.org

Related (but not duplicate) is also Issue 9257 - [ER] New optional "operator" keyword to validate magic functions http://d.puremagic.com/issues/show_bug.cgi?id=9257

And associated discussion: http://forum.dlang.org/thread/iubdngjksicwxugrqesc@forum.dlang.org

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