[Issue 3089] New: Error: f.bar can only be called on a mutable object, not shared(foo)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 23 20:05:22 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3089
Summary: Error: f.bar can only be called on a mutable object,
not shared(foo)
Product: D
Version: 2.030
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jason.james.house at gmail.com
Created an attachment (id=401)
--> (http://d.puremagic.com/issues/attachment.cgi?id=401)
Sample code demonstrating the issue
The compiler seems to offer no way to call functions on shared structs/classes
under certain scenarios. The attached code demonstrates the simplest case I
could find. Changing the type of foo to class, or moving the shared keyword on
the function bar has no effect.
--
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