\ Test nesting of objects. MRESET GET.ARRAY: ANEW TASK-TESTNEST METHOD GET.ARRAY: METHOD GET.INT: METHOD SETUP: METHOD SHOW: METHOD TEST: :CLASS BIGOBJ along1 ." Init a BIGOBJ" cr ;M :M GET.ARRAY: ( -- array ) big-array-1 ;M :M GET.INT: an-int ;M :M SETUP: ( N -- ) new: big-array-1 77 fill: big-array-1 ;M :M SHOW: ( -- ) \ Print data but not name. limit: big-array-1 0 DO i . i at: big-array-1 . cr LOOP cr ;M :M PRINT: ." A Big Object with embedded object."cr ." Long1 = " along1 . cr \ name: big-array-1 print: big-array-1 ." Short1 = " ashort1 . cr ;M :M FREE: ( -- ) free: big-array-1 ;M :M TEST: ( -- ) cr ." Test using SELF" cr 8 setup: self show: self free: self \ 123456 put: an-int cr ." AN-INT = " get: an-int . cr ;M ;CLASS :CLASS BIGGEROBJ