[Issue 4857] New: Missing shared overloads in object
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 13 00:59:11 PDT 2010
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 at invisibleduck.org
ReportedBy: doob at me.com
--- Comment #0 from Jacob Carlborg <doob at 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: -------
More information about the Digitalmars-d-bugs
mailing list