Fix fix on 1984/anonymous
Somehow I ended up having the string on one line when the author had it on two lines which is also something they liked. This update should (unless the format of the alt code section needs to change with discussion) be the final edit of README.md.
This commit is contained in:
1 parent
459fff8859
commit
c8af4c6940
3 files changed
+16
-12
No files matched your search
@@ -19,7 +19,7 @@ make all
|
|||||||
The original version of this entry was added, by request,
|
The original version of this entry was added, by request,
|
||||||
in order to show the code that was turned into the
|
in order to show the code that was turned into the
|
||||||
[tattoo](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php),
|
[tattoo](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php),
|
||||||
as the alternate code. See below in the tattoo side-by-side with the code.
|
as the alternate code. See below for the tattoo side-by-side with the code.
|
||||||
|
|
||||||
### Alternate build:
|
### Alternate build:
|
||||||
|
|
||||||
@@ -41,8 +41,8 @@ The author was too embarrassed that they could write such trash, so I
|
|||||||
promised to protect their identity. I will say that the author of this
|
promised to protect their identity. I will say that the author of this
|
||||||
program has a well known connection with the C programming language.
|
program has a well known connection with the C programming language.
|
||||||
|
|
||||||
This program is a unique variation on the age old "Hello, world"
|
This program is a unique variation on the age old "hello, world!" program. What
|
||||||
program. What reads like a read may be written like a write!
|
reads like a read may be written like a write!
|
||||||
|
|
||||||
In 2005 someone by the name of Thomas Scovell got a tattoo of this entry. See
|
In 2005 someone by the name of Thomas Scovell got a tattoo of this entry. See
|
||||||
his [web
|
his [web
|
||||||
@@ -77,12 +77,11 @@ Landon Curt Noll, the one who told the author about the tattoo, wrote back:
|
|||||||
|
|
||||||
### Regrets:
|
### Regrets:
|
||||||
|
|
||||||
Landon Curt Noll wrote that the author, if they had to do it over again, regrets not
|
Landon Curt Noll wrote that the author regrets not making the program a
|
||||||
making the program a one-liner and not moving the `int i` into an arg of main
|
one-liner and not moving the `int i` into an arg of main (so that the line would
|
||||||
(so that the line would have started with main). On the other hand the author
|
have started with main). On the other hand the author likes the "two line look"
|
||||||
likes the "two line look" and the way `hell o` was split. :-) And they like the
|
and the way `hell o` was split. :-) And they like the fact that it ends in a
|
||||||
fact that it ends in a smily face: `;}`
|
smily face: `;}`.
|
||||||
|
|
||||||
|
|
||||||
## Copyright and CC BY-SA 4.0 License:
|
## Copyright and CC BY-SA 4.0 License:
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hello, world!\\
|
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
|
||||||
n",'/'/'/'));}read(j,i,p)void*i;{write(j/p+p,i---j,(int)i/(int)i);}
|
o, world!\n",'/'/'/'));}read(j,i,p)void*i;{write(j/p+p,i---j,(int)i/(int)i);}
|
||||||
+6
-1
@@ -133,13 +133,18 @@ The problem was to do with the way that the `read(2)` function was redefined.
|
|||||||
With macOS the second arg needs to be a `void *` and this also necessitated some
|
With macOS the second arg needs to be a `void *` and this also necessitated some
|
||||||
casts to `int` (on the second arg) in the call to `write(2)` (in `read()`).
|
casts to `int` (on the second arg) in the call to `write(2)` (in `read()`).
|
||||||
|
|
||||||
|
Later Cody corrected the mistake where the `"hello, world!"` string was on one
|
||||||
|
line rather than two lines which the author told us (Landon) that they liked.
|
||||||
|
Thus now it is like the original where the first line ends with `"hell\` and
|
||||||
|
the second line starts with `o, world!\n"`.
|
||||||
|
|
||||||
By request, the original code is provided as
|
By request, the original code is provided as
|
||||||
[anonymous.alt.c](1984/anonymous/anonymous.alt.c) so that one can look at it and
|
[anonymous.alt.c](1984/anonymous/anonymous.alt.c) so that one can look at it and
|
||||||
the famous tattoo:
|
the famous tattoo:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
which was done in 2005 by [Thomas
|
...which was done in 2005 by [Thomas
|
||||||
Scovell](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php).
|
Scovell](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php).
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user