From d840cb98fabe493fcb90701deb0dd7d8fe102ea8 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 30 Apr 2003 19:48:29 +0000 Subject: [PATCH] function(unsigned, const exprseq &) constructor clears status_flags::evaluated [Chris Dams] --- ginac/function.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ginac/function.pl b/ginac/function.pl index b72a62c1..727eb52f 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -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) -- 2.44.0