On Aug 26, 2008, at 3:26 AM, Alex wrote:
> Well, in a previous answer, Warren used that if-statement and it
> worked fine.
How did you come to that conclusion? What I posted was clearly
incomplete. For it to have been tested, I would have had to write a
complete program, build it, test it, and then excerpt it to give you
that pseudocode. Doesn't seem likely, does it?
What I actually did is wrote it off the top of my head, in my email
client. I did it with the sole purpose illustrating two possible
solutions, not to provide code for you to cut and past and treat as
unassailable. It's up to you to understand the ideas communicated and
apply them correctly.
There are at least two bugs in the pseudocode I posted; could be
more. Joel found one of them for you. I have no intention of telling
you where the other bug is. If you don't develop the skills to find
bugs on your own, you're going to make one sorry programmer.