Selection sets, AND/OR, and parentheses

Kenneth Brody kenbrody at bestweb.net
Wed May 14 14:18:12 PDT 2008


To clarify ("further confuse"?) the issue of selection sets, using
AND and OR, and parentheses...

First, AND and OR have the same precedence.

However, the selection sentence parser has a "quirk" in which they
are given right-associativity rather than the expected left.

This means that the sentence:

    a AND b OR c

is treated (as previously noted) as:

    a AND ( b OR c )

When using only ANDs or only ORs, this has no net effect, as these
will always give the same result:

    a AND ( b AND ( c AND D ) )
versus
    ( ( a AND b ) AND c ) AND d


I believe that filePro has always treated selection sets in this way,
and there are no plans on changing the behavior, as doing so would
change the behavior of any non-parenthesized selection sentence out
there.

-- 
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody        | www.hvcomputer.com | #include              |
| kenbrody/at\spamcop.net | www.fptech.com     |    <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>



More information about the Filepro-list mailing list