ok I found better:<div><div>see:</div><div><a href="http://forum.dlang.org/post/mailman.1002.1370829729.13711.digitalmars-d-learn@puremagic.com">http://forum.dlang.org/post/mailman.1002.1370829729.13711.digitalmars-d-learn@puremagic.com</a></div>
<div><br></div><br><div class="gmail_quote">On Tue, May 21, 2013 at 2:40 PM, Timon Gehr <span dir="ltr"><<a href="mailto:timon.gehr@gmx.ch" target="_blank">timon.gehr@gmx.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 05/21/2013 10:37 AM, Jonathan M Davis wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Tuesday, May 21, 2013 01:31:36 Timothee Cour wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

you can use a property function as a normal function if you have to.<br>
</blockquote>
<br>
I must've missed that. Do you mean this will become valid?<br>
struct A{<br>
   int x_;<br>
   @property int x(){return x_;}<br>
}<br>
void main(){<br>
A a;<br>
int x1=a.x();<br>
int x2=a.x;<br>
}<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think that it's really much of a loss to not be able to use UFCS<br>
</blockquote>
<br>
in situations like that<br>
<br>
I keep running into such situations, because phobos reuses function names a<br>
lot in different modules, and it's only going to get worse as phobos size<br>
increases.<br>
</blockquote>
<br></div><div class="im">
It's not 100% clear what's going to happen with @property, but given the last<br>
major discussion on it, it's quite clear that we're not going to be strictly<br>
enforcing @property, and the -property flag is going to get the boot (I thought<br>
that it was removed from the Phobos build, but it looks like it's still<br>
there). It seems likely that @property will have no effect on getters, and it<br>
may or may not be required on setters. That matter wasn't settled, but it's<br>
very clear that strict property enforcement was not wanted by the majority<br>
(too many people want optional parens), so the situation where a symbol<br>
conflict with a UFCS property makes it impossible to call will be going away<br>
(and it currently only exists when -property is used).<br>
<br>
- Jonathan M Davis<br>
<br>
</div></blockquote>
<br>
No, it is the other way round.<br>
<br>
@property void foo(int x){ }<br>
void main(){ foo(2); } // this compiles with -property.<br>
<br>
The consensus (modulo details) was that anything that -property implements will not be implemented and anything that -property does not implement will be implemented.<br>
<br>
</blockquote></div><br></div>