<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The pop-up is a result of a failing test in:</div><div><br></div><div>CodeHolder&gt;&gt;</div><div><div>validateMessageSource: sourceString forSelector: aSelector inClass: theClass</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"Check whether there is evidence that method source is invalid"</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(theClass newParser parseSelector: sourceString asString) = aSelector</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifFalse: [self informPossiblyCorruptSource].</div></div><div><br></div><div>In my example, the source string is&nbsp;'ba_z&nbsp;^true'. However, the result of #parseSelector: is #ba but the selector is actually #'ba_z'. So the test fails resulting in 'self #informPossiblyCorruptSource'.</div><div><br></div><div>However, I can successfully doIt:</div><div>'Bar new ba_z' ==&gt; true&nbsp;&nbsp;</div><div>meaning that the selector is recognized in this case.</div><div><br></div><div>So, Parser&gt;&gt;#parseSelector doesn't understand the underscore, but I'm in unfamiliar territory here.</div><div><br></div><div>Doug</div><div><br></div><div><br></div><br><div><div>On Jun 26, 2014, at 11:08 , Eliot Miranda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 11:05 AM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Doug,<div><br></div><div>&nbsp; &nbsp; this is going to be either Shout or Text&gt;&gt;makeSelectorBoldIn: that need changes, probably the latter. &nbsp;The latter probably needs to just accept selectors containing underscores. &nbsp;Shout would need to obey the preference. HTH</div>
</div></blockquote><div><br></div><div>hmmm, this works: 'i_contain_underscores ^self' asText makeSelectorBoldIn: UndefinedObject</div><div><br></div><div>So can you show a stack trace? &nbsp;e.g. by replacing the pop-up with a halt?</div>
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 11:19 PM, Douglas McPherson <span dir="ltr">&lt;<a href="mailto:djm1329@san.rr.com" target="_blank">djm1329@san.rr.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">I want to use underscores in the selectors which define external functions, to match the external function name as much as possible. So I checked the preference "allowUnderscoreSelectors". I can define and use such selectors, however each time I browse a method whose selector has an underscore, I get the attached modal pop-up:<div>

<br></div><div>&nbsp;<span>&lt;UserDialogBox.png&gt;</span></div><div><br></div><div>This seems to happen in both 4.4 and 4.5.&nbsp;</div><div><br></div><div>Is there something else I am supposed to do to properly enable underscores in selectors?</div>

<div><br></div><div>Thanks,</div><div>Doug&nbsp;</div></div><br><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class=""><font color="#888888">-- <br>best,<div>Eliot</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>
<br></blockquote></div><br></body></html>