>> 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)
|