diff options
author | Teddy <[email protected]> | 2013-08-13 19:42:19 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-13 19:42:19 +0800 |
commit | cfb7f91f0153250b009a68b076ef4d1e6f12c4eb (patch) | |
tree | 2648fb7eaf56aa7b00e43f00820d41d84bc5b7af /types.cpp | |
parent | 5fe2cc5264b28726a6a43e2141d252caa66d37f9 (diff) |
add the middle class: `Container` to help resolve circular issues
Diffstat (limited to 'types.cpp')
-rw-r--r-- | types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,8 +15,8 @@ const int PREC = 16; extern EmptyList *empty_list; extern UnspecObj *unspec_obj; -Pair::Pair(EvalObj *_car, EvalObj *_cdr) : EvalObj(CLS_PAIR_OBJ), - car(_car), cdr(_cdr), next(NULL) { +Pair::Pair(EvalObj *_car, EvalObj *_cdr) : +Container(CLS_PAIR_OBJ), car(_car), cdr(_cdr), next(NULL) { gc.attach(car); gc.attach(cdr); |