www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4857] New: Missing shared overloads in object

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

           Summary: Missing shared overloads in object
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: doob me.com


--- Comment #0 from Jacob Carlborg <doob me.com> 2010-09-13 00:58:41 PDT ---
The object module should overload appropriate functions and methods with the
shared qualifier. For example, the following doesn't not compile:

class Foo
{
     private Object value;

     synchronized bool hasValue (Object val)
     {
         return value == val;
     }
}

Because opEquals in object doesn't accept shared parameters.

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