BUG: Order of Evaluation Change Between Native Code and P- Code (191616)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q191616 SYMPTOMS
A program appears to be incorrectly evaluating expressions, or evaluates
differently between P-Code and Native Code with optimizations.
CAUSE
Visual Basic does not guarantee the order of evaluation in expressions when
programs are compiled to native code with optimizations.
RESOLUTION
In a no-optimization case, the expression is evaluated left to right. In a
optimized case, Visual Basic may change the order in which it evaluates
expressions. A change in logic may be required to achieve the desired
results.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug kbpending KB191616 |
---|
|