Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
436B

  1. : DOES>
  2. ( Overwrite cellWord in CURRENT )
  3. 3 ( does ) CURRENT @ C!
  4. ( When we have a DOES>, we forcefully place HERE to 4
  5. bytes after CURRENT. This allows a DOES word to use ","
  6. and "C," without messing everything up. )
  7. CURRENT @ 3 + HERE !
  8. ( HERE points to where we should write R> )
  9. R> ,
  10. ( We're done. Because we've popped RS, we'll exit parent
  11. definition )
  12. ;
  13. : CONSTANT CREATE , DOES> @ ;