The module is evaluated twice #2

Closed
opened 2016-03-30 17:11:15 +01:00 by SuzanneSoy · 1 comment
SuzanneSoy commented 2016-03-30 17:11:15 +01:00 (Migrated from github.com)

When running the file below, the "message" is displayed twice.

#lang repltest racket
(displayln "message")
(define x 1)
> x
1
When running the file below, the `"message"` is displayed twice. ``` racket #lang repltest racket (displayln "message") (define x 1) > x 1 ```
SuzanneSoy commented 2016-03-30 17:14:03 +01:00 (Migrated from github.com)

This is because the module is eval'd when run. It would be preferable to eval only when the test submodule is run, but I do not know what is the best way to create a submodule without potentially interfering with the user-provided language's #%module-begin syntax.

This is because the module is `eval`'d when run. It would be preferable to `eval` only when the `test` submodule is run, but I do not know what is the best way to create a submodule without potentially interfering with the user-provided language's `#%module-begin` syntax.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: suzanne.soy/repltest#2
No description provided.