export - How to provide a function in a Racket environment on the Raspberry Pi? -
i want execute program (written in racket) on raspberry pi when doing so, doesn't know functions defined in file.
the small example below gives rise following error on raspberry pi : default-load-handler: expected 'module' declaration "test", found: else in: ...
file i'm executing on raspberry pi :
(require "test.rkt") (display "2 + 2 = ") (display (plus 2 2))
the "test.rkt" file :
(provide plus) (define (plus b) (+ b))
when executing file doesn't display gives rise error listed above.
note files don't contain : "#lang racket". because if contain it, loading file nothing.
so following file nothing when loaded on raspberry pi :
#lang racket ; when omitting "hello world!" displayed, else not (display "hello world!")
Comments
Post a Comment