Diff for /gforth/mini-oof.fs between versions 1.1 and 1.4

version 1.1, 1998/04/12 21:49:13 version 1.4, 1998/10/10 10:28:34
Line 1 Line 1
 1 cells Constant cell  
 : method ( m v -- m' v ) Create  over , swap cell+ swap  : method ( m v -- m' v ) Create  over , swap cell+ swap
   DOES> ( ... o -- ... ) @ over @ + @ execute ;    DOES> ( ... o -- ... ) @ over @ + @ execute ;
 : var ( m v size -- m v' ) Create  over , +  : var ( m v size -- m v' ) Create  over , +
   DOES> ( o -- addr ) @ + ;    DOES> ( o -- addr ) @ + ;
 : class ( class -- class methods vars ) dup 2@ ;  : class ( class -- class methods vars ) dup 2@ ;
 : end-class  ( class methods vars -- )  : end-class  ( class methods vars -- )
   Create  here >r , dup , 2 cells ?DO ['] noop , cell +LOOP    Create  here >r , dup , 2 cells ?DO ['] noop , 1 cells +LOOP
   cell+ dup cell+ swap @ 2 - cells r> 2 cells + swap move ;    cell+ dup cell+ r> rot @ 2 cells /string move ;
 : defines ( xt class -- ) ' >body @ + ! ;  : defines ( xt class "name" -- ) ' >body @ + ! ;
 : new ( class -- o )  here over @ allot swap over ! ;  : new ( class -- o )  here over @ allot swap over ! ;
 : :: ( class "name" -- ) ' >body @ + @ compile, ;  : :: ( class "name" -- ) ' >body @ + @ compile, ;
 Create object  1 cells , 2 cells ,  Create object  1 cells , 2 cells ,

Removed from v.1.1  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>