Thanks for noticing this. Using 'ref' in 'new_alg_rec' is very
wrong. But it did not cause trouble with tests: apparenty it
is never called. More precisely, it is called in
'applyWithOutputToString'. 'applyWithOutputToString' is called
in 'parseAndInterpToString' which AFAICS is unused.
'applyWithOutputToString' is also called in 'parseAndEval1'
which is called from 'parseAndEval' which is called
from 'checkCondition'. 'checkCondition' may be called from
'typeCheckInputAreas' but the call is only done when
'$bcParseOnly' is false. And '$bcParseOnly' is set to true
and no code sets it to false.
So it seems that we should remove 'new_alg_rec',
'applyWithOutputToString', 'parseAndInterpToString',
''parseAndEval1', 'parseAndEval' and 'checkCondition'.
And we should remove '$bcParseOnly' and replace its uses by
true.
--
Waldek Hebisch