Topic: another problem with expression evaluation (1 of 3), Read 23 times
Conf: VEDIT Macro Language Support
From: Bernd Richert
Date: Sunday, January 09, 2005 06:32 AM

I have again given a complete example command window dialog below. With these register values I expected that the 4th command would have incremented #103. But it didn't.
The 6th command (with parentheses) does it. But I don't understand.
See below.

Regards
Bernd

--------------------------
COMMAND: #103
1
COMMAND: #104
3
COMMAND: #104!=0
1
COMMAND: #103+=#104!=0
COMMAND: #103
1
COMMAND: #103+=(#104!=0)
COMMAND: #103
2

 


Topic: Re: another problem with expression evaluation (2 of 3), Read 20 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Monday, January 10, 2005 11:12 AM

At 06:32 AM 1/9/2005, you wrote:
>COMMAND: #103+=#104!=0
>COMMAND: #103
>1
>COMMAND: #103+=(#104!=0)
>COMMAND: #103
>2

It simply appears that your first expression confuses our code, and that the explicit parentheses work fine.

Also e.g. "#103+=7*8+5" works fine.

I'll add this to the bug list, but I have to consider it a very low priority.

Ted.

 


Topic: Re: another problem with expression evaluation (3 of 3), Read 20 times
Conf: VEDIT Macro Language Support
From: Bernd Richert
Date: Tuesday, January 11, 2005 02:56 AM

Ted,

that's ok

Bernd