Mirror of CollapseOS
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

16 rindas
521B

  1. DOES>
  2. Used inside a colon definition that itself uses CREATE, DOES>
  3. transforms that newly created word into a "does cell", that is,
  4. a regular cell (when called, puts the cell's addr on PS), but
  5. right after that, it executes words that appear after the
  6. DOES>.
  7. "does cells" always allocate 4 bytes (2 for the cell, 2 for the
  8. DOES> link) and there is no need for ALLOT in colon definition.
  9. At compile time, colon definition stops processing words when
  10. reaching the DOES>.
  11. Example: ": CONSTANT CREATE HERE @ ! DOES> @ ;"