| version 1.2, Mon Dec 31 18:40:24 2007 UTC | version 1.3, Mon Jan 2 17:16:52 2012 UTC | ||
|---|---|---|---|
|
|
||
| then | then | ||
| + ; | + ; | ||
| : extend-structure ( n "name" -- struct-sys n ) \ Gforth | |||
| \g extend an existing structure | |||
| >r 0 value lastxt >body r> ; | |||
| : begin-structure ( "name" -- struct-sys 0 ) \ X:structures | : begin-structure ( "name" -- struct-sys 0 ) \ X:structures | ||
| 0 value lastxt >body 0 ; | 0 extend-structure ; | ||
| : end-structure ( struct-sys +n -- ) \ X:structures | : end-structure ( struct-sys +n -- ) \ X:structures | ||
| swap ! ; | swap ! ; |
|
||||||||
|
CVS Admin Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |