Bug 4857 – Missing shared overloads in object

Status
NEW
Severity
major
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2010-09-13T00:58:41Z
Last change time
2024-12-07T13:31:10Z
Assigned to
Sean Kelly
Creator
Jacob Carlborg
Moved to GitHub: dmd#17230 →

Comments

Comment #0 by doob — 2010-09-13T00:58:41Z
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 by robert.schadek — 2024-12-07T13:31:10Z
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