cultlang / craft-lisp

The core of Cult, originally an interpreter for a lisp-ish programming language.
0 stars 0 forks source link

Variable declaration hides some symbol lookup #22

Open cgrinker opened 6 years ago

cgrinker commented 6 years ago
(load-dll "CultlangUv.dll")
(load-dll "CultlangHttp.dll")

(require "builtin:cult/uv")
(require "builtin:cult/http")

(define loop (uv/loop))

(define handler (variable (function (req rep)  
  (http/response/code rep 200u16)
  (http/response/body rep "Cool Stuff Dork")
)))

Produces this error

Cannot require a projection to `craft/lisp/CultSemantics` from anon:repl--1, failed reading:
Cannot require a projection to `craft/lisp/CultSemantics` from file:D:\Data\Clark\cult\cultlang\http\cult\http.cult, failed reading:
Resolve craft/lisp/Resolve 0x000010970179b70f bad symbol http/response/code.