Re: Silly operator precedence bug
- From: marc hoffman <foo@xxxxxxxxxxxxxxx>
- Date: Fri, 01 Aug 2008 11:34:02 +0200
Scout,
Consider these lines of code:
if not Column in [4..6] then
Column := 4;
My intention was that if the Column variable held either 9 or 2 before
this statement, it would end up containing 4 afterwards.
It didn't.
I can see why it didn't now.
I feel silly.
indeed. happened to me every time. wouldn't it be nice if you could write:
if Column not in [4..6] then
to avoid the whole thing?
--
marc hoffman
RemObjects Software
The Infrastructure Company
http://www.remobjects.com
.
- Follow-Ups:
- Re: Silly operator precedence bug
- From: John Herbster
- Re: Silly operator precedence bug
- From: Karl Pentzlin
- Re: Silly operator precedence bug
- From: Steve Thackery
- Re: Silly operator precedence bug
- From: Anders Isaksson
- Re: Silly operator precedence bug
- References:
- Silly operalor precedence bug
- From: Scout
- Silly operalor precedence bug
- Prev by Date: Re: More on anonymous methods
- Next by Date: Re: Tibursn / RAD 2007 Project compatibility?
- Previous by thread: Silly operalor precedence bug
- Next by thread: Re: Silly operator precedence bug
- Index(es):
Relevant Pages
|