the original code can be read as: "if removing both a and b from X leaves the empty set, then..."
or could be recoded as: if not ((a in X) or (b in X)) then... [EMAIL PROTECTED] wrote: > Hi All, > > I've inherited some code that I need to integrate into some existing > code. The author of the old code is using a construct I don't > understand. There are things like: > > if (X - [a, b]) = [] then ... > > where "X" is a set and "a" and "b" are valid members of that set. My > understanding of sets is that this should be the same as: > > if (a in X) or (b in X) then... > > but it isn't, because if I replace the first "if" with the second, > the program behavior changes. > > Can someone help me with my conceptual gap and explain what the first > "if" is saying? Thanks. > > > Regards, > Sid Gudes > PIA Systems Corporation > [EMAIL PROTECTED] > > > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://www.elists.org/mailman/listinfo/delphi-talk __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk