He perfectly refers to polymorphic code I'd say. There used to be a lot of examples in VX Heavens. Of course, no point saying this now (it's useless because the source I cited is down). However, polymorphic code for compiled languages
does exist, it did these days with MS-DOS malware.
In fact, there used to be an example around (do your Google research) of Delphi code that "kinda" assembled itself and changed behaviour. Polymorphic code like the one you're asking, requires some sort of AI to determine what is going to be assembled "within itself". Basically your program requires to know how to code, and then what to do with that code he can code for itself. Polymorphic code also requires to be modular and to be prioritized somehow, a module for watching others, what to change and whatnot. Morphing stuff without an orchestrator can lead to undesirable results, yet... the order emerges from chaos.
If you aim for the Skynet-kind (soft/mal)ware, along with the community I can offer my help and opinion. Just start a thread, though (don't PM me for that, we EZ are a community, love & share). Of course, all of this for educational purposes.