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

Pages: 1-

RACKET

Name: Anonymous 2011-03-18 22:11

sup /prog/, I'm having some trouble with file IO in Racket R5RS. It is simple, I have this:

(display #\newline out_file)

Where out_file is the output port. It's just some .dat file or something. It prints the reset of the things in my program perfectly fine, it just won't fucking newline for some reason. If I do this:

(display #\newline)

It works perfectly, and newlines to the damn screen. What am I doing wrong :(

Name: Anonymous 2011-03-18 22:26

Hmm, not much traffic on a friday night eh?

Name: Anonymous 2011-03-18 22:29

If it's not working, it's probably a bug and you should file a report. Though, I guess you could try (newline out_file)

Name: Anonymous 2011-03-18 22:32

I tried (newline out_file) also.

I even tried (write-char newline out_file).

This is for an assignment that's due in a couple hours. I fucking hate my teacher sometimes.

Thanks anyways though.

Name: Anonymous 2011-03-18 22:37

It works here.

>>3
Look at the email, WHBT.

Name: Anonymous 2011-03-18 22:40

Hmm, so nobody knows the answer to this? Is R5RS not a very popular choice or something?

Name: Anonymous 2011-03-18 22:42


             ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
          ( ´∀`) < VIVA MEOWXICO! and ALBERTOO DEL RRRIO!
        /    |    \
       /       .|      ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
       / "⌒ヽ |.イ |
   __ |   .ノ | || |__
  .    ノく__========つ--
   _((_________\
    ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄

Name: Anonymous 2011-03-18 23:29

>>6
Nobody really uses plain R5RS.

Name: Anonymous 2011-03-19 0:41

>>8
Nobody really uses Scheme.

Name: Anonymous 2011-03-19 10:14

>>9
Nobody really programs here.

Name: Anonymous 2011-03-19 10:22

>>10
Nobody uses computers anyway.

Name: Anonymous 2011-03-19 11:17

>>11
Nobody is neurotypical anyway.

Name: Anonymous 2011-03-19 13:18

>>12
Nobody is a human being anyway.

Name: Anonymous 2011-03-19 13:25

>>13
Nobody really exist anyway.

Name: Nietzsche 2011-03-19 13:34

Name: Anonymous 2011-03-19 16:09

I figured out what it was. Apparently R5RS has a weird bug with the text-editor on vista or something. It's all good I finished the program and turned it in.

Name: Anonymous 2011-03-19 16:14

    ░░░░░░░░░░░░░░░▄░░░░░░░░░░░░░░░
    ░░░░░░░░░░░░░▄▀█░░░░░░░░░░░░░░░
    ░░░░░░░░░░░▄▀░░█░░░░░░░░░░░░░░░
    ░░░░░░░░░▄▀░░▄▀░░░░░░░░░░░░░░░░
    ░░░░░░░░█▄░▄▀░░░░░░░░▄█▄░░░░░░░
    ░░░░░░░░█░▀▄░░░░░░░▄▀░█░▀▄░░░░░
    ░░░░░░░░▀▄░░▀▄░░░▄▀░░▄▀▄░░▀▄░░░
    ░▄░░░░░░░░▀▄░░▀▄▀░░▄▀░░░▀▄░░▀▄░
    ░█▀▄░░░░░░░░▀▄▀█▀▄▀░░░░░░░▀▄░█░
    ░█░░▀▄░░░░░▄▀░░█░░▀▄░░░░░░░░▀█░
    ░░▀▄░░▀▄░▄▀░░▄▀░▀▄░░▀▄░░░░░░░░░
    ░░░░▀▄░░█░░▄▀░░░░░▀▄░▄█░░░░░░░░
    ░░░░░░▀▄█▄▀░░░░░░░░▄▀░█░░░░░░░░
    ░░░░░░░░▀░░░░░░░░▄▀░░▄▀░░░░░░░░
    ░░░░░░░░░░░░░░░▄▀░░▄▀░░░░░░░░░░
    ░░░░░░░░░░░░░░░█░▄▀░░░░░░░░░░░░
    ░░░░░░░░░░░░░░░█▀░░░░░░░░░░░░░░
    ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
    ░█▄░█░█░▄▀▀▄░░█░░█░█▀▀░▀█▀░█░░░
    ░█░█▄░█░█░▄▄░░█▄▄█░█▄▄░░█░░█░░░
    ░█░░█░█░▀▄▄▀░░█░░█░█▄▄░▄█▄░█▄▄░
    ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Name: Anonymous 2011-03-20 6:18

>>14
sadfrog.jpg

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