<div dir="ltr">This is accepts-valid behavior.<div><br></div><div>function(parameters) => expr</div><div><br></div><div>means the combination of:</div><div><br></div><div>1. specifying "context pointer is not necessary"</div>
<div>2. lambda syntax "(parameters) => expr"</div><div><br></div><div>I think website documentation has a bug.</div><div><br></div><div>Kenji Hara</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/7/10 Brian Schott <span dir="ltr"><<a href="mailto:briancschott@gmail.com" target="_blank">briancschott@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While finishing up work on my parser and grammar specification I found this in container.d:<br>
<br>
return equal!(function(Elem a, Elem b) => !_less(a,b) && !_less(b,a))<br>
                     (thisRange, thatRange);<br>
<br>
It seems to be some strange hybrid of the function literal syntax and the lambda syntax. It's not documented anywhere (surprise!) and I'm not sure if I should support it or file an accepts-invalid bug against DMD.<br>

</blockquote></div><br></div>