[gforth] / gforth / mini-oof.fs  

gforth: gforth/mini-oof.fs

Diff for /gforth/mini-oof.fs between version 1.7 and 1.8

version 1.7, Wed Aug 23 21:03:51 2000 UTC version 1.8, Sat May 26 10:20:01 2012 UTC
Line 7 
Line 7 
 : end-class  ( class methods vars "name" -- )  : end-class  ( class methods vars "name" -- )
   Create  here >r , dup , 2 cells ?DO ['] noop , 1 cells +LOOP    Create  here >r , dup , 2 cells ?DO ['] noop , 1 cells +LOOP
   cell+ dup cell+ r> rot @ 2 cells /string move ;    cell+ dup cell+ r> rot @ 2 cells /string move ;
 : defines ( xt class "name" -- ) ' >body @ + ! ;  : >vt ( class "name" -- addr )  ' >body @ + ;
   : bind ( class "name" -- xt )    >vt @ ;
   : defines ( xt class "name" -- ) >vt ! ;
 : new ( class -- o )  here over @ allot swap over ! ;  : new ( class -- o )  here over @ allot swap over ! ;
 : :: ( class "name" -- ) ' >body @ + @ compile, ;  : :: ( class "name" -- ) bind compile, ;
 Create object  1 cells , 2 cells ,  Create object  1 cells , 2 cells ,


Generate output suitable for use with a patch program
Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help