[racket] How to load a file at the startup?

From: Rouben Rostamian (rostamian at umbc.edu)
Date: Wed Jul 11 21:11:10 EDT 2012

Ah, OK.  the `provide' was missing.  Thanks!

On Wed, Jul 11, 2012 at 08:06:50PM -0400, Matthias Felleisen wrote:
> 
> Did you provide sq? If so, racket -it tryme.rkt should work. 
> 
> On Jul 11, 2012, at 6:33 PM, Rouben Rostamian wrote:
> 
> > I use racket from the command line (in Linux).  I load a racket
> > file, as in:
> > 
> >  (enter! "tryme.rkt")
> > 
> > then I proceed with my interactive session.  The file tryme.rkt
> > contains:
> > 
> >   #lang racket
> >   (define (sq x) (* x x))
> > 
> > This works fine but I am wondering: Is it possible to prescribe
> > tryme.rkt on the command line?  I tried various combinations
> > of the -i -r -t -f -u flags but none worked.  E.g.,
> > 
> >   racket -i -f tryme.rkt
> > 
> > starts up racket but the function `sq' is unrecognized.
> > 
> > I am new to racket, so forgive me if I am asking a trivial
> > question.
> > 
> > -- 
> > Rouben Rostamian


Posted on the users mailing list.