A question about CASE OF
(too old to reply)
2017-07-02 19:43:20 UTC
Raw Message
Hello All,

Just... one question.

Are the items in the CASE OF statement tested linearly until one test reveals true (or if none, execute
the else condition if any) or there is some mechanism of localization like in a sorted binary tree.
Linearly: the item with a high probability are to be specified in first places.
By tree, much faster for nearly same-probability items.

Can the compiler manage the tree version or have I to hardcode a tree of cascaded IF THEN ELSE ? If so,
how much levels can I develop in this cascade ?

Cheers, Ched'
fpc-devel maillist - fpc-***@lists.freepascal.org