tiancaiamao / shen-go

A Go implementation of the Shen programming language
Other
55 stars 4 forks source link

CD then LOAD doesn't work as expected #46

Open liumingc opened 8 months ago

liumingc commented 8 months ago

Refer S31/Primitives/primitives.lsp:

(DEFUN open (String Direction)
   (LET ((Path (FORMAT NIL "~A~A" *home-directory* String)))
        (shen.openh Path Direction)))   

Maybe in PrimReadFileAsByteList, filename should path.Join with the value of *home-directory* .