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

Pages: 1-

ASCII and EOF

Name: Anonymous 2011-09-28 7:40

Under the standard ASCII set, the most significant bit of each character is 0. If so, why doesn't the EOF constant just use the highest possible value? to provide support for extended character sets? surely a single character could be sacrificed in favor of being able to recognize the EOF signal without using an integer to store a character?

Name: Xarn 2011-09-28 7:43

SLACKWARESUPREMACYSLACKWARESUPREMACY

Name: Anonymous 2011-09-28 7:54

This is prog. No one will take you seriously

LISP sucks
Haskell sucks

Java forever

Hail satan. Hail niggers.
Heil Black Hitler. Glory Black Afrikka.

Name: Anonymous 2011-09-28 8:07

I believe in the /prog/ who believes in me.

Sure it is full of trolls, idiots, and idiotic trolls, but within these dark lands, hidden beneath the sea of shit, dwell true wizards. And all is worth it for those few, precious, moments.

Name: Anonymous 2011-09-28 8:17

Name: Anonymous 2011-09-28 9:20

Motherfucking binary files, how do they work?

Name: Anonymous 2011-09-28 10:07

>>3
Glam is Dragon's Lair.
http://en.wikipedia.org/wiki/Dragon%27s_lair

Commodore and Ubuntu targeted blacks -- products offering simplicity as a selling point.

Name: Anonymous 2011-09-28 10:12

>>3
LoseThos documents (source code) have ASCII first, a terminating zero and binary data.  There are library functions which will conveniently load and save these documents.  You just work with the structures in memory.

I held-back from using all 256 values but recently went with extended screen codes.  I gotta innovate or die.  If it's not different and better, I lose.

Name: Anonymous 2011-09-28 10:29

>>1
That's fragile. What if the file you're reading contains that characeter?

No, better to keep files as sequences of arbitrary bytes.

Name: Anonymous 2011-09-28 19:32

>>8
Sounds awesome, an OS that dictates document formats.  Microsoft should have thought of that and forced everyone to use MS Word documents for everything.

Name: Anonymous 2011-09-28 20:55

What I don't get is why we don't just define EOF to be the End of Text or End of Transmission character.

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