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