[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



[...]

    Geoffrey> Doesn't ord("z") convert "z" to numeric and then do the
    Geoffrey> math?

Ah, I see what you're getting at.  Yes the perl example does a
conversion.  The ruby doesn't, however. 

    Geoffrey> Actually, I believe '5' - '4' in C simply does pointer
    Geoffrey> math.

No, C's closer to the Ruby version in this respect in that the
constant 'a' is internally a one byte immediate value (whereas in Perl
the string part of a scalar is always a char* under the hood).

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org|  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00016" href="msg00016.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> vinson.lists at charter.net (Jason Vinson)</li></ul></li>
<li><strong><a name="00020" href="msg00020.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="00038" href="msg00038.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00041" href="msg00041.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="00043" href="msg00043.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00053.html">[ale] Introduction</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00055.html">[ale] Introduction</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00043.html">[ale] Introduction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00033.html">[ale] Introduction</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00054"><strong>Date</strong></a></li>
<li><a href="threads.html#00054"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>