| ▲ | verbatim 5 hours ago | |
Interesting. The article states "The compiler prints the value as a given variable changes." -- surely it means the program does, and not the compiler? | ||
| ▲ | monocasa 5 hours ago | parent | next [-] | |
I take it to mean that the compiler inserts variable print code on variable modifications. | ||
| ▲ | compiler-guy 2 hours ago | parent | prev | next [-] | |
It might be more precisely stated something like "The language's semantics require that when a variable changes value, that change includes the side-effect of printing the new value." | ||
| ▲ | dtoffe 2 hours ago | parent | prev [-] | |
The compiler produces p-code to be interpreted by an interpreter, so it is the interpreter that prints the value. | ||