<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 10, 2016, at 3:53 PM, Matthew Johnson <<a href="mailto:matthew@anandabits.com" class="">matthew@anandabits.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Ahh, this is different than what I have been talking about as it statically evaluates at the call site rather than the declaration site. Sorry, I think I missed your earlier post.</span></div></blockquote><div><br class=""></div>This would be no different from #file or #line in a default argument position, I think. If you use it in normal code:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>let cls = #Self</div><div><br class=""></div><div>it would evaluate as we’ve been discussing elsewhere here. I have had cases though, where using in a default parameter slot would be useulf (assuming it evaluates like #file and #line in those cases).</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">One question about this - how would it work if this method was called in a lexical con txt without an enclosing type declaration? Would that be an error or would it just require a parameter to be passed?</div></div></blockquote><div><br class=""></div>I would expect it to be an error if there were no enclosing type and the parameter wasn’t specified (but yeah, passing an explicit type should work).</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">If we call what I am talking about Type and we also want this behavior we should call it #Type as it would be the static type at the call site. But they are separate ideas and should be separate proposals.</div></div></div></blockquote><div><br class=""></div>Again, this would only be the case in a default argument position; it would work just like the other “#” symbols.</div><div><br class=""></div><div>-tim</div><div><br class=""></div><div><br class=""></div><div><br class=""></div></body></html>