Important paradox demands your attention
1
Name:
Anonymous
2011-01-23 15:15
How do you write a single newline?
a) WriteLine(); (faggot)
b) Write("\n"); (faggot)
c) nl/newline (faggot)
d) other (faggot)
2
Name:
Anonymous
2011-01-23 15:16
I don't.
3
Name:
Anonymous
2011-01-23 15:17
any kind of output is for (faggot)s
4
Name:
Anonymous
2011-01-23 15:17
5
Name:
Anonymous
2011-01-23 15:18
I press 'return'.
6
Name:
Anonymous
2011-01-23 15:19
7
Name:
Anonymous
2011-01-23 15:27
echo
8
Name:
Anonymous
2011-01-23 15:28
Funny how toy languages like LISP or PROLOG have specific functions for that while the ``````````real'''''''''' languages don't.
9
Name:
Anonymous
2011-01-23 15:38
count >> endl
10
Name:
Anonymous
2011-01-23 15:39
>>8
It's also funny how ````````````````toy'''''''''''''''' languages like Lisp or Prolog are actually more powerful than ``````````````````````````````````````````````````real'''''''''''''''''''''''''''''''''''''''''''''''''' languages.
11
Name:
Anonymous
2011-01-23 15:44
>>10
implying that >>8 implied they aren't
12
Name:
Anonymous
2011-01-23 15:58
>>11
implying you should go back to /g/
13
Name:
Fuck off,
!Ep8pui8Vw2
2011-01-23 16:01
>>12
implying your not a fucking cock sucking faggot
14
Name:
Back to /b/,
!uaVa00FkCs
2011-01-23 16:02
>>13
implying Back to /b/, ``please''
15
Name:
Anonymous
2011-01-23 16:06
(newline)
16
Name:
Fuck off,
!Ep8pui8Vw2
2011-01-23 16:06
17
Name:
Anonymous
2011-01-23 16:09
0xD 0xA
\r \n
cr lf
18
Name:
Back to /b/,
!uaVa00FkCs
2011-01-23 16:20
>>16
Back to /b/, please.
19
Name:
Back to /b/,
!uaVa00FkCs
2011-01-23 16:22
>>16
Back to /b/, please.
20
Name:
Fuck off,
!Ep8pui8Vw2
2011-01-23 16:23
>>18,19
You again? GO FUCKING FUCK YOURSELF NIGGER I FUCKING HATE YOU. FUCK OFF ALREADY MOTHERFUCKER. FUCK
21
Name:
Back to /b/,
!uaVa00FkCs
2011-01-23 16:24
>>20
Back to /b/, please.
22
Name:
Anonymous
2011-01-23 16:42
putc('\n');
23
Name:
Anonymous
2011-01-23 16:46
24
Name:
Anonymous
2011-01-23 16:49
>>10
Now that's just selfish and inconsiderate appropriation of punctuation.
25
Name:
Anonymous
2011-01-23 16:59
>>16,18-21
>``Novelty accounts''
Back to /reddit/, please.
26
Name:
Anonymous
2011-01-23 17:03
OP IS FAGGOT<br>
27
Name:
Anonymous
2011-01-23 17:14
28
Name:
Anonymous
2011-01-23 17:20
BR? BR? HUEHUEHEUEHEUEHUE!
29
Name:
Anonymous
2011-01-23 22:47
BR? BR? HUAHUEHUAHUEHUAHUEHUAHUEHUAHUEHUAHUEHUAHUE
30
Name:
Anonymous
2011-01-24 5:42
IO is for faggots
31
Name:
Anonymous
2011-01-24 12:18
putchar('\n');
32
Name:
Anonymous
2011-01-25 22:26
WHATEVER, BRO
33
Name:
Anonymous
2011-01-26 4:05
COME AT ME, BRO
>>8
In R6RS you can use the function, #\linefeed, or "\n". Just fine. In some cases the function is more convenient.
35
Name:
Anonymous
2011-01-26 8:01
cr
36
Name:
Anonymous
2011-01-26 9:56
37
Name:
Anonymous
2011-01-26 11:07
>>36
They both represent U+000A
38
Name:
Anonymous
2011-01-26 11:34
>>37
Wasn't #\newline the portable one? (CRLF on windows)
39
Name:
Anonymous
2011-01-26 14:20
>>38
Windows considered useless and not worth mention.
40
Name:
Anonymous
2011-01-26 15:04
>>38
Well, yes. In that it was allowed but deprecated
[1] in R6RS, and it was available in R5RS. It looks like that decision is going to be reversed for R7RS
[2] .
--
1. http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-7.html#node_sec_4.2.6
2. http://trac.sacrideo.us/wg/ticket/84
41
Name:
Anonymous
2011-01-28 6:13
>>31
puts(""); is shorter.
42
Name:
Anonymous
2011-01-28 6:29
>>41
It will have to test if your
'0' is
== to
'0', and
then will produce a newline.
>>31 will directly output just a newline.
OMG OPTIMIZED
43
Name:
Anonymous
2011-01-28 6:30
44
Name:
Anonymous
2011-01-28 7:18
Endline indicates that there's a visual output, which just isn't so when I write (Embedded systems)
BUT if I had to do it, I guess cout << "\n";
45
Name:
Anonymous
2011-01-28 7:28
>>44
Why are you shifting a 2-elements char array to an undefined variable?
Also,
std::cout << std::endl; // using namespace std; considered harmful
46
Name:
Anonymous
2011-01-28 8:00
mov ebx, [fd]
mov ecx, charbuf
mov byte [ecx], 0xA
mov eax, 4
mov edx, 1
int 0x80
47
Name:
Anonymous
2011-01-28 8:42
fputc_unlocked('\n',stdout);
48
Name:
Anonymous
2011-01-28 9:49
_IO_acquire_lock (fp);
(__builtin_expect (((fp)->_IO_write_ptr >= (fp)->_IO_write_end), 0) ? __overflow (fp, (unsigned char) ('\n')) : (unsigned char) (*(fp)->_IO_write_ptr++ = ('\n')));
_IO_release_lock (fp);
49
Name:
Anonymous
2011-01-28 12:37
say ""
50
Name:
Anonymous
2011-01-28 13:19
50 GET
51
Name:
Anonymous
2011-01-28 15:41
echo '<br/>';
52
Name:
Anonymous
2011-02-03 7:15