[Issue 2159] Confusion between function call and C++ style function address

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 29 20:27:11 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2159





------- Comment #5 from davidl at 126.com  2008-06-29 22:27 -------
yes, this is really nasty.

One solution is change the interface of Thread class. But it's not a good
solution.
Because that relies on the higher interface design quality of lib
developers(and it's not necessary in other langs).

So perhaps a qualifier "property" like C# to explicit declare if this
should/could be used as a property by property syntax is better.

For this case, the real problem is that "run" in normal sense is not a
"property", but it can be misused in property syntax. 


-- 



More information about the Digitalmars-d-bugs mailing list