this post was submitted on 19 Jul 2024
6 points (100.0% liked)

Comic Strips

13208 readers
2764 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 6 months ago (1 children)

Rofl but what does it even compile down to? I could see a program that just concatenates and prints every string included in its source code

[–] [email protected] 1 points 6 months ago

Fun fact: In a hilarious misuse of the #! script interpreter mechanism, on Linux (and similar operating systems), if you put #!/bin/cat as the first line of a file and make it executable, it'll dump itself to the current output channel when called by name.

Which is basically what you're describing.

See also: Perl, which will try to interpret almost anything as legitimate code if you don't tell it not to.