Subject: Need help with bizarre problem - maybe a new bug?
From: Wolfgang Jenkner
Date: Fri, 29 Apr 2005 15:37:58 +0200
C Y writes:
> In my continuing (or renewed) efforts on the unit package, I have
> stumbled onto a new, very odd problem with letsimp.
[...]
> when I run a loop with letsimp commands, the result keeps getting
> assigned 1 rather than the correct output. What's even MORE bizarre
> is that if I either include a print statement of the variable in
> question in the for loop, or try to track this down in debug mode,
> the problem goes away.
I've just committed a fix for this. The problem was due to a somewhat
sloppy use of varlist and genvar in $letrat. For more details, please
read the commit message, which should appear at
http://sourceforge.net/mailarchive/forum.php?forum_id=33117
I also fixed the problem that CRE expressions kept popping up where
they shouldn't.
So, you can eliminate the calls to `ratsimp' and `ratdisrep' which you
inserted as work-arounds in `processunits' (this would be the best
test for all this).
(By the way, shouldn't `currentdoeval' be initialized to `true' when
loading `unit.mac'?)
Wolfgang