Mirror of CollapseOS
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

16 lignes
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> @ ;"