get rid of unions2

This commit is contained in:
Shautvast 2024-10-25 17:38:06 +02:00
parent a5d77019f3
commit ea734dd234

View file

@ -60,18 +60,6 @@ public:
enum ValueType { String, Numeric, Boolean, Nil } valuetype; enum ValueType { String, Numeric, Boolean, Nil } valuetype;
Value value; Value value;
// union Value {
// double_t numeric;
// bool boolean;
// string str;
// NilType dummy;
// Value(double_t _numeric) : numeric(_numeric) {}
// Value(bool _boolean) : boolean(_boolean) {}
// Value(string _str) : str(_str) {}
// Value(NilType v) : dummy(v) {}
// ~Value() {}
// } value;
Literal(NilType v) : value(v){}; Literal(NilType v) : value(v){};
Literal(double_t _numeric) : value(_numeric){}; Literal(double_t _numeric) : value(_numeric){};