<div dir="ltr">the other part of my post was about UFCS syntax for mixin:<div>eg: foo.mixin.writeln</div><div><br></div><div>is there any reason not to allow it?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Sep 3, 2013 at 1:47 PM, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com" target="_blank">andrej.mitrovich@gmail.com</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 9/3/13, Jacob Carlborg <<a href="mailto:doob@me.com">doob@me.com</a>> wrote:<br>
> With properties you never know if you're invoking a method or accessing<br>
> a field:<br>
><br>
> foo.data; // call method or access field?<br>
<br>
</div>Yeah but it does something with data on its own side. If this becomes<br>
an implicit mixin, it could do something with code at the call site.<br>
E.g.<br>
<br>
auto st = getSecurityToken(...);<br>
updateGui();  // what if this becomes a mixin and ends up reading 'st'<br>
and displaying it on the screen?<br>
<br>
It is equivalent to using globals everywhere in your codebase.<br>
</blockquote></div><br></div>