function(unsigned, const exprseq &) constructor clears status_flags::evaluated
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 30 Apr 2003 19:48:29 +0000 (19:48 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 30 Apr 2003 19:48:29 +0000 (19:48 +0000)
[Chris Dams]

ginac/function.pl

index b72a62c..727eb52 100755 (executable)
@@ -604,6 +604,10 @@ $constructors_implementation
 function::function(unsigned ser, const exprseq & es) : exprseq(es), serial(ser)
 {
        tinfo_key = TINFO_function;
+
+       // Force re-evaluation even if the exprseq was already evaluated
+       // (the exprseq copy constructor copies the flags)
+       clearflag(status_flags::evaluated);
 }
 
 function::function(unsigned ser, const exvector & v, bool discardable)