Arc Forumnew | comments | leaders | submitlogin
Noob question
1 point by VinceG 5333 days ago | 4 comments
Hi, was wondering if there's a way to get racket to auto load the arc files upon startup. I found this thread but the script didn't work: http://arclanguage.org/item?id=1424

I get "reference to undefined identifier: aload"

It would be really cool if I could hide the libraries away some place and just type "arc" anywhere to get the REPL or "arc file" to run one. But it looks like the libraries don't link that way.



1 point by zck 5333 days ago | link

The command you'll use will be different on Windows (new-alias) vs. Linux (alias) -- which are you using? I can dig up my Linux command once I get home.

I don't run Arc to take scripts, so I can't help you there, but I can get you so that arc drops you in a REPL.

-----

1 point by akkartik 5332 days ago | link

Are you using the community anarki (http://github.com/nex3/arc)? Among other things it provides an arc.sh script that can be called from any directory.

(Past discussion: http://arclanguage.org/item?id=12512)

-----

1 point by VinceG 5332 days ago | link

The arc.sh script worked great for going straight to a REPL and running a script, but can it simply load a set of definitions and then enter a REPL? If I ran "arc.sh arc.arc" I get a bunch of "redefining..." then it dumps me back to the shell. I didn't see an option in the script itself. If it's not possible, no biggie, I can just call arc then (load script), it's nice to save some keystrokes.

-----

1 point by VinceG 5332 days ago | link

Linux, and thanks!

-----