Quines without strings
How do I write a quine in a language without strings, such as Brainf*ck? I know the output would have to be an encoded version of the program, but I have no idea how you get the encoded version of the program when strings can't be used. Is there some kind of trick to it?
I already tried looking at the following websites:
- https://stackoverflow.com/questions/2568020/is-it-possible-to-create-a-quine-in-every-turing-complete-language
- http://www.madore.org/~david/computers/quine.html
From these links, I was able to gather that every Turing-complete language permits a quine, but I don't know why or how.
Posted Nov 1, 2023, 4:08 PM UTC
11