天道酬勤,学无止境

racket-student-languages

BSL (How to Design Programs): how to import code from a separate file into definitions area?

I'm having an issue with BSL. I want to divide my code into separate auxiliary files and use (require "auxiliary-function.rkt") at the beginning to import the separated code into the definitions area. However it doesn't work as supposed. Though no explicit error given, it seems like that that DrRacket simply doesn't see the code in the separate file and all I see is the error <auxiliary-function-name>: this function is not defined Apparently, (provide x) is not included in BSL. I've read the manual and this answer but it’s still not clear how to make this work. Is this even possible in BSL

2021-05-09 06:24:30    分类:问答    racket   racket-student-languages