Issue 4857 - Missing shared overloads in object
Summary: Missing shared overloads in object
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Mac OS X
: P2 major
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 00:58 UTC by Jacob Carlborg
Modified: 2024-12-07 13:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jacob Carlborg 2010-09-13 00:58:41 UTC
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.
Comment 1 dlangBugzillaToGithub 2024-12-07 13:31:10 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17230

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB