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

 >>  PW>>> i := ord (s[0]);
 >>  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 
 >> call
 >> No, they execute at the same speed.  In fact, it is done at
 >> compile time.
 HK> The length of a string is determined at compile time ?
Whoops!  Maybe I didn't say that clearly!  What I should have
said that the ord() function, the length() function, or the
byte() typecast are taken care of at compile time, so they don't
take any extra time when executing.
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™.