<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 4, 2016 at 5:37 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></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 class=""><div class="h5"><br>
> On 04.05.2016, at 13:32, Tobias Pape <<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> without executing, what does the following expression result in?<br>
><br>
> #(<br>
> 25rFFs2<br>
> 26rFFs2<br>
> 27rFFs2<br>
> 28rFFs2<br>
> 29rFFs2<br>
> 30rFFs2<br>
> 31rFFs2<br>
> 32rFFs2<br>
> )<br>
><br>
> Best regards<br>
> -Tobias<br>
<br>
<br>
</div></div>Interesting.<br>
<br>
16rFFe4 used to be 16711680, now it’s 65508. </blockquote><div><br></div><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"><br><br></blockquote><div>VisualWorks suffers exactly the same issue:</div><div><br></div><div>#(390 #s2 405 #s2 420 #s2 435 #s2 379264 419342 462150 507778) </div></div><div><br></div><div>The only thing we can do is issue a warning, because otherwise we ban legal programs. But we also need to disambiguate. Should s or e in the penultimate positions force interpretation as scaled decimal or exponent, and hence force someone using a base >= 15 to use upper case? Seems the only practical choice to me. So we need tests and to modify printing. At least we still print in upper case. </div><div><br></div><div>And BTW, I for one would hate having to enter hex constanrts in upper case. Makes my VMMaker life much more difficult; all the disassemblers and debuggers I use print hex in lower case.</div><div><br></div><div><br></div><div><br></div><div> </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">Try these:<br>
<br>
#(<br>
10r1e4<br>
11r1e4<br>
12r1e4<br>
13r1e4<br>
14r1e4<br>
15r1e4<br>
16r1e4<br>
17r1e4<br>
18r1e4<br>
)<br></blockquote><div><br></div><div>VW refuses to parse these (non-decimal integers cannot have exponents, and if one adds a decimal point, non-radix 10 numbers cannot contain a decimal point.</div><div> </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">Maybe we need to raise an error for certain combinations? Better than a surprise.</blockquote></div>
</div></div>