1 страниц (7 вхождений)
cases evaluates True branch also in False case - Сообщения
#1 Опубликовано: 25.06.2020 04:11:55
Hi!
I used the red bordered equation (and similar constructions) for a long time.
But this doesn't work no more.
Even if the result of the test is false, the true expression is evaluated, which fails in this example.
If/else does the job.
Assigning the equation to one variable works initially, but on second sight one can see, that the expression isn't really evaluated but only stored.
Is this all the intended behaviour? And why did it change?
Thanks,
Martin
I used the red bordered equation (and similar constructions) for a long time.
But this doesn't work no more.
Even if the result of the test is false, the true expression is evaluated, which fails in this example.
If/else does the job.
Assigning the equation to one variable works initially, but on second sight one can see, that the expression isn't really evaluated but only stored.
Is this all the intended behaviour? And why did it change?
Thanks,
Martin
#2 Опубликовано: 25.06.2020 07:32:02
Last change in cases logic was 3-4 years ago, so it's probably something in the program or something not experienced.
The behavior is known as I've mentioned it sometimes, usually when I see examples where definitions were made inside cases arguments.
I'll see if I can do something function-side altough if it works it might change some other behavior.
The behavior is known as I've mentioned it sometimes, usually when I see examples where definitions were made inside cases arguments.
I'll see if I can do something function-side altough if it works it might change some other behavior.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Martin_B 25.06.2020 08:51:00
#3 Опубликовано: 25.06.2020 09:04:44
WroteLast change in cases logic was 3-4 years ago, so it's probably something in the program or something not experienced.
...
I changed some time ago from the last stable to the current beta.
Did a test with the Version 0.99.6884 (portable, 32-bit). (Should have done before posting.)
With this version the described behaviour does not occur.
#4 Опубликовано: 28.06.2020 19:47:17
Plugin updated, now it should work 1:1 as before (no evaluation is performed on definition).
Please be careful however, since a symbolic evaluation to show the function content or a failed evaluation with an error triggered on the conditions leads to the evalution of all the options.
In general currently is better to use cases to host just dead content (numbers, strings, variables).
Please be careful however, since a symbolic evaluation to show the function content or a failed evaluation with an error triggered on the conditions leads to the evalution of all the options.
In general currently is better to use cases to host just dead content (numbers, strings, variables).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Опубликовано: 29.06.2020 04:03:42
#6 Опубликовано: 29.06.2020 08:20:56
WroteThank you Davide for your efforts.
With 0.99.72.51:
But now, the evaluation of the equation fails, even without assigning the result to a variable.
To me it looks like the result is the evaluated test clause.
With 0.99.68.84 it works.
Thank you, I messed up with the code. The update is now deleted and I'll upload a new version ASAP. You can remove the plugin and reinstall the latest.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 страниц (7 вхождений)
-
Новые сообщения
-
Нет новых сообщений