Sujet : Re: Writing own source disk
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 03. Jun 2024, 00:10:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3iu4n$3i607$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 02/06/2024 23:17, Ben Bacarisse wrote:
Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
Writing a prgram which writes its own source to standard output is a
standard programming problem. It's called a quine.
A quine must also not process any input.
No input at compile-time or runtime?
A compiler necessarily has to have the source code of the program as input, so what are the limitations? A C program can use #include; does that extend to directives like #embed, or is that considered cheating?