<div dir="ltr">On Sat, Apr 27, 2013 at 6:36 PM, Gábor Kozár <span dir="ltr"><<a href="mailto:kozargabor@gmail.com" target="_blank">kozargabor@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">
<div class="gmail_extra"><br><div class="gmail_quote">2013/4/27 Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Just use the empty string for binding and getNodeAs :)</blockquote></div><br></div></div><div class="gmail_extra">That would potentially lead to confusion when there are more nodes bound, but the programmer forgot to supply the proper name. In my suggestion, the parameterless getNodeAs would have an assert to check there is exactly one node bound (and whose name is the default name).</div>
</div></blockquote><div><br></div><div style>If you put everything behind constants, I think it'll be easy enough to see what's happening - and that's a generally good strategy anyway, as you get a compile error if you mistype...</div>
<div style>Thus, I think it'd not add enough value to special case the interface.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/27 Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>On Sat, Apr 27, 2013 at 6:28 PM, Gábor Kozár <span dir="ltr"><<a href="mailto:kozargabor@gmail.com" target="_blank">kozargabor@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra">

<div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hi,</div><div><div class="gmail_extra"><br></div><div class="gmail_extra">

2013/4/26 Pedro Delgado Perez <span dir="ltr"><<a href="mailto:pedro.delgadoperez@mail.uca.es" target="_blank">pedro.delgadoperez@mail.uca.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






Hehehe... I found the problem with this. I was binding wrongly the matcher! I used a id in the matcher thas was different from the id in the function that retrieves the nodes... I think this will be a typical mistake for newbies... 
</blockquote></div><div class="gmail_extra"><br></div></div><div class="gmail_extra">Ah, yes, that happens a lot to me as well. Now that I think about it, it might be worthwhile adding a parameterless .bind() and .getNodeAs<T>() for situations where only one node is bound. Should be fairly trivial, but also not all that useful...</div>



</div></blockquote><div><br></div></div><div>Just use the empty string for binding and getNodeAs :)</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">


<div class="gmail_extra"><div><br><div class="gmail_quote">2013/4/26 Pedro Delgado Perez <span dir="ltr"><<a href="mailto:pedro.delgadoperez@mail.uca.es" target="_blank">pedro.delgadoperez@mail.uca.es</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks both! Now I can see all this much clearer and I have the enough knowledge to start out with clang.</blockquote></div><br></div>You're welcome. Good luck!</div><div class="gmail_extra"><div>
<br><div class="gmail_quote">2013/4/25 Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





And btw thanks a lot for all the great user support you're giving here!</blockquote></div><br></div>Thank you, I'm happy to help. Clang is a great project!</div><div class="gmail_extra"><br></div><div class="gmail_extra">





As soon as the university term is over, I'm also planning on trying to contribute code-wise, mainly to the Static Analyzer but I guess also on just about anything that catches my attention. :) I'm quite excited - this is going to be the first open source project I contribute to.</div>





<div class="gmail_extra"><br></div><div class="gmail_extra">Gabor<br><br></div></div>
</blockquote></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>