[Issue 4053] To avoid struct ctor/opCall conflicts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 8 00:35:31 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4053
--- Comment #2 from bearophile_hugs at eml.cc 2011-03-08 00:32:29 PST ---
This (modified) example from Tom shows problems with not static opCall too:
struct Foo {
int i;
this(int i) { this.i = i; }
void opCall(int x, int y) {}
}
void main() {
Foo foo;
foo(1, 2);
}
--
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