If a program could program itself?.... (AI)

cjdelphi:
if the code does not compile it will try something else except instead of making mistakes it can not only generate code compile it and then execute it to perform new tasks and call new instructions if it could learn to program and learn new ways ...

Here's the problem...

We have all seen the very bizarre things people do to "get it to compile". Unfortunately, without really understanding the problem, the code that now compiles, usually fails spectacularly at runtime.

Would you really be happy flying in a Jumbo Jet, whose inflight navigation system passed the test: "it compiled without errors" ? Or even, whose captain "passed the test by answering all the questions correctly".