Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Microsoft Follies :(

Author: Eiko Bleicher

Date: 05:30:05 01/25/04

Go up one level in this thread


Hello Dave,

does this only work with variable named that way? Could you provide a complete
code snippet that produces some strange behaviour? I'll try to find out then.

Eiko

On January 24, 2004 at 14:35:07, David Dory wrote:

>
>When you have three integer variables, all local, and r == 6
>
>and code of:
>
>	rt = r;
>	tr = r;
>
>You might think that tr == r, and rt = r, and both would equal 6.
>
>But wait, this is Microsoft Visual C++ 6.0, so it sets the values at:
>
>	tr == 7  (yeah, seven!)
>	rt == 6
>
>Now ain't that some shit?? And if you think --tr or tr-- will work right, you're
>dreaming!
>
>Anybody know why?
>
>(Till then, I'm not naming any int's "tr" !)
>
>Good luck to all in the tournament!
>Dave



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.