Arc Forumnew | comments | leaders | submitlogin
3 points by jsgrahamus 3175 days ago | link | parent

Synchronicity at work. I was just wondering the same thing and have been working with tryarc.org

When I try the above I get:

  arc> (def prompt (msg)
        (pr msg)
        (readc)   ; grabs the newline
        (readline))
  #<procedure: prompt>
  arc> (prompt "Ask anything: ")
  Ask anything: nil
  arc>  
Not going to be changing tryarc.org. Any suggestions?

Steve



2 points by akkartik 3175 days ago | link

This works for me on Anarki. You don't need the readc anymore, that's fixed thanks to mpr below.

-----

1 point by jsgrahamus 3175 days ago | link

Thanks.

Tried arclite and it, too, had problems with readline. However, its problem is that readline (and parse-format) depend upon readc, which is not defined.

-----

1 point by akkartik 3175 days ago | link

Wow, I had to go lookup what arclite was :)

-----

3 points by jsgrahamus 3175 days ago | link

Found it on the arc wiki.

-----