Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing shared overloads in object #17230

Open
dlangBugzillaToGithub opened this issue Sep 13, 2010 · 0 comments
Open

Missing shared overloads in object #17230

dlangBugzillaToGithub opened this issue Sep 13, 2010 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Jacob Carlborg (@jacob-carlborg) reported this on 2010-09-13T00:58:41Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=4857

Description

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.
@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants