TIP: Click on subject to list as thread! ANSI
echo: pascal
to: VISA HARVEY
from: JUD MCCRANIE
date: 1998-04-03 11:55:00
subject: RE: PASCAL DOESN`T SUCK

 VH>>>> Isn't ord a library function? ( correct me if I'm wrong :)
 VH>>>> but isnt i := byte(s[0]) faster? ( typecast rather than function
 VH>>>> call
 JM>> No, they execute at the same speed.  In fact, it is done at
 JM>> compile time.
 VH> OK, I'll just learn not to trust the manuals 100% then ;)
A typecast is normally faster than a function call, but in the
case of ord(), the function call is replaced by the typecast by
the compiler.  As far as the Pascal language is concerned, ORD()
is a function call.  However, the compiler doesn't implement it
as a function call.
Jud McCranie
 * Silver Xpress V4.3 SW20178
--- PCBoard (R) v15.3/M 5
---------------
* Origin: Riverdale, Ga (1:133/9024)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.