From aef282750640253f5b66be264c613ed1ee42f6e0 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Mon, 21 Oct 2019 14:42:01 +0000 Subject: [PATCH] made True and False #final #limited --- moo/kernel/Boolean.moo | 4 ++-- moo/lib/gc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moo/kernel/Boolean.moo b/moo/kernel/Boolean.moo index 82f3d50..4e4ae8d 100644 --- a/moo/kernel/Boolean.moo +++ b/moo/kernel/Boolean.moo @@ -4,7 +4,7 @@ class Boolean(Object) and call subclassResponsibiltiy?" */ } -class True(Boolean) +class(#final, #limited) True(Boolean) { method not { @@ -47,7 +47,7 @@ class True(Boolean) } } -class False(Boolean) +class(#final, #limited) False(Boolean) { method not { diff --git a/moo/lib/gc.c b/moo/lib/gc.c index d91ddcd..74283cb 100644 --- a/moo/lib/gc.c +++ b/moo/lib/gc.c @@ -320,7 +320,7 @@ static kernel_class_info_t kernel_classes[] = { 4, { 'T','r','u','e' }, - 0, + MOO_CLASS_SELFSPEC_FLAG_LIMITED | MOO_CLASS_SELFSPEC_FLAG_FINAL, 0, 0, 0, @@ -329,7 +329,7 @@ static kernel_class_info_t kernel_classes[] = { 5, { 'F','a','l','s','e' }, - 0, + MOO_CLASS_SELFSPEC_FLAG_LIMITED | MOO_CLASS_SELFSPEC_FLAG_FINAL, 0, 0, 0,