Writing self modifying code - nth-bot/nth-bot.github.io GitHub Wiki

It is possible to write self-modifying code. To do so, operators must be escaped. To escape an operator, it must be doubled: << yields <.

Here is an example.


# coder

< add {stuff}
+ [stuff]
> added



# init

< when {msg} say {this}
@ add ## new << [msg] >> [this]
> done

Next read: Indirect variable assignment

⚠️ **GitHub.com Fallback** ⚠️