Is it possible to create a quine in every turing-complete language?

后端 未结 4 899
清歌不尽
清歌不尽 2020-12-24 12:31

I just wanted to know if it is 100% possible, if my language is turing-complete, to write a program in it that prints itself out (of course not using a file reading function

4条回答
  •  孤城傲影
    2020-12-24 12:43

    It is possible to have a programming language that cannot print all the symbols in its representation. For example, the I/O may be limited to 7-bit ASCII characters with language keywords in Arabic. That's the only exception I can think of.

提交回复
热议问题