Luc Le Blanc said (on or about) 11/01/2007 16:50: > Don Albertson wrote: > > >> Listing all the items has the added benefit of making your intent >> perfectly clear to the next poor sod who has to look at the code. >> > > Indeed. But with instances like: > > case chrCapital_A ... chrCapital_W : > Case chrCapital_Y ... chrCapital_Z : > Case chrSmall_A ... chrSmall_W : > case chrSmall_Y ... chrSmall_Z : > > I'd rather not have to write them all. And isn't iteasier on CPU too? > (assuming the compiler writes a single 'if') > > > Luc Le Blanc > > I never try to outguess what a compiler is going to do. I don't know what you're doing, but if I had an enum with that many different values, I'd give serious thought to using a native type that explicitly supports the use of > and < type comparisons.
-- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
