j'ai un probleme avec NULL ou seq[] et _size qui n'apparait pas dans giac-1.5.0.63
le petit programme suivant
Code : Tout sélectionner
// -*- compile-command: "g++ -g size-giac-1.5.0.87.cc -lgiac -lgmp" -*-
#include <giac/config.h>
#include <giac/giac.h>
using namespace std;
using namespace giac;
int main(){
string s("seq[]");
giac::context ct;
gen c1(s,&ct);
c1=eval(c1,1,&ct);
cout << _size(c1,&ct) <<endl;
cout << c1[0] <<endl;
//it gives with giac 1.5.0.87
//["atom","cplx","idnt","frac","vector","symb","strng","other","total"],[0,0,0,0,1,0,0,0,80]]
// but with giac 1.5.0.63 and earlier it gives 0 as expected
return 0;
}
Code : Tout sélectionner
[["atom","cplx","idnt","frac","vector","symb","strng","other","total"],[0,0,0,0,1,0,0,0,80]]