For Programmers: Free Programming Magazines  


Home > Archive > Scheme > April 2006 > about running Module









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author about running Module
Raous

2006-04-29, 7:03 pm

I am using Dr.Scheme 3.00,
This is my simple module processing a simple job:

(module mymod (lib "eopl.ss" "eopl")

(define xt
(lambda (n)
(- n 1)
))

(xt 3)
)

I expected to see number 2, but I couldn't see anything
in the interaction window.

Isn't it correct to run module?

pschombe@uci.edu

2006-04-29, 10:04 pm

did you try (require mymod) ?

Jens Axel Søgaard

2006-04-30, 4:04 am

Raous wrote:
> I am using Dr.Scheme 3.00,
> This is my simple module processing a simple job:
>
> (module mymod (lib "eopl.ss" "eopl")
>
> (define xt
> (lambda (n)
> (- n 1)
> ))
>
> (xt 3)
> )
>
> I expected to see number 2, but I couldn't see anything
> in the interaction window.
>
> Isn't it correct to run module?


While developing a module use the "module" language.
Remember to use display in order to see the result.

--
Jens Axel Søgaard
<http://www.scheme.dk/blog/>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com