Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Important paradox demands your attention

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)

Name: Anonymous 2011-01-23 15:16

I don't.

Name: Anonymous 2011-01-23 15:17

any kind of output is for (faggot)s

Name: Anonymous 2011-01-23 15:17

>>3 (faggot)

Name: Anonymous 2011-01-23 15:18

I press 'return'.

Name: Anonymous 2011-01-23 15:19

>>,- (faggot)

Name: Anonymous 2011-01-23 15:27

echo

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.

Name: Anonymous 2011-01-23 15:38

count >> endl

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.

Name: Anonymous 2011-01-23 15:44

>>10
implying that >>8 implied they aren't

Name: Anonymous 2011-01-23 15:58

>>11
implying you should go back to /g/

Name: Fuck off, !Ep8pui8Vw2 2011-01-23 16:01

>>12
implying your not a fucking cock sucking faggot

Name: Back to /b/, !uaVa00FkCs 2011-01-23 16:02

>>13
implying Back to /b/, ``please''

Name: Anonymous 2011-01-23 16:06

(newline)

Name: Fuck off, !Ep8pui8Vw2 2011-01-23 16:06

>>14
Fuck off, faggot.

Name: Anonymous 2011-01-23 16:09

0xD 0xA
\r \n
cr lf

Name: Back to /b/, !uaVa00FkCs 2011-01-23 16:20

>>16
Back to /b/, please.

Name: Back to /b/, !uaVa00FkCs 2011-01-23 16:22

>>16
Back to /b/, please.

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

Name: Back to /b/, !uaVa00FkCs 2011-01-23 16:24

>>20
Back to /b/, please.

Name: Anonymous 2011-01-23 16:42

putc('\n');

Name: Anonymous 2011-01-23 16:46

Name: Anonymous 2011-01-23 16:49

>>10
Now that's just selfish and inconsiderate appropriation of punctuation.

Name: Anonymous 2011-01-23 16:59

>>16,18-21
>``Novelty accounts''
Back to /reddit/, please.

Name: Anonymous 2011-01-23 17:03

OP IS FAGGOT<br>

Name: Anonymous 2011-01-23 17:14

>>26 IS A FAGGOT<br />

Name: Anonymous 2011-01-23 17:20

BR? BR? HUEHUEHEUEHEUEHUE!

Name: Anonymous 2011-01-23 22:47

BR? BR? HUAHUEHUAHUEHUAHUEHUAHUEHUAHUEHUAHUEHUAHUE

Name: Anonymous 2011-01-24 5:42

IO is for faggots

Name: Anonymous 2011-01-24 12:18

putchar('\n');

Name: Anonymous 2011-01-25 22:26

WHATEVER, BRO

Name: Anonymous 2011-01-26 4:05

COME AT ME, BRO

Name: respondingtoa3dayoldpost 2011-01-26 7:30

>>8
In R6RS you can use the function, #\linefeed, or "\n". Just fine. In some cases the function is more convenient.

Name: Anonymous 2011-01-26 8:01

cr

Name: Anonymous 2011-01-26 9:56

>>34
#\newline

Name: Anonymous 2011-01-26 11:07

>>36
They both represent U+000A

Name: Anonymous 2011-01-26 11:34

>>37
Wasn't #\newline the portable one? (CRLF on windows)

Name: Anonymous 2011-01-26 14:20

>>38
Windows considered useless and not worth mention.

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

Name: Anonymous 2011-01-28 6:13

>>31

puts(""); is shorter.

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

Name: Anonymous 2011-01-28 6:30

>>42
* '\0', '\0'

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";

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

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

Name: Anonymous 2011-01-28 8:42

fputc_unlocked('\n',stdout);

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);

Name: Anonymous 2011-01-28 12:37


say ""

Name: Anonymous 2011-01-28 13:19

50 GET

Name: Anonymous 2011-01-28 15:41

echo '<br/>';

Name: Anonymous 2011-02-03 7:15


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List