On Mar 22, 2007, at 20:31 UTC, Andy Dent wrote: > My immediate gut reaction was that this is code taking advantage of > knowledge as to how the compiler works at present and should not be > relied on to work in future.
I don't think that's the case; it relies only on documented behavior of Select Case. > However, I think it really should be discouraged as an idiom because > the way it works is counter-intuitive to how it reads. I'd tend to agree with that. Even experienced programmers are likely to go "huh?" when they see it, which slows them down on their path to understanding. So in that sense it's a Bad Thing. Of course, if it became a common idiom, then experienced programmers would stop going "huh?" and there'd be little drawback to it. But I still think an if/elseif structure accomplishes the same thing in a clearer way. Cheers, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
