aboutsummaryrefslogtreecommitdiff
path: root/types.cpp
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-13 19:42:19 +0800
committerTeddy <[email protected]>2013-08-13 19:42:19 +0800
commitcfb7f91f0153250b009a68b076ef4d1e6f12c4eb (patch)
tree2648fb7eaf56aa7b00e43f00820d41d84bc5b7af /types.cpp
parent5fe2cc5264b28726a6a43e2141d252caa66d37f9 (diff)
add the middle class: `Container` to help resolve circular issues
Diffstat (limited to 'types.cpp')
-rw-r--r--types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.cpp b/types.cpp
index 449da5e..7988c59 100644
--- a/types.cpp
+++ b/types.cpp
@@ -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);