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.

17 rindas
542B

  1. Compilation vs meta-compilation
  2. Compilation vs meta-compilation. When you compile a word with
  3. "[COMPILE] foo", it's straightforward: It writes the address
  4. of word foo to HERE.
  5. When you *meta* compile, it's a bit more mind blowing. It
  6. fetches the address of the word specified by the caller, then
  7. writes that number as a literal, followed by a reference to
  8. ",".
  9. Example: ": foo [COMPILE] bar;" is the equivalent of ": foo bar
  10. ;" if bar is not an immediate. However, ": foo COMPILE bar ;"
  11. is the equivalent of ": foo ['] bar , ;". Got it?