0
以这样的方式,我可以做这个事如同在SML我怎么能界定“嵌套结构”:SML如何使用“嵌套”结构
structure Why_Does =
struct
val seriously = "..."
Structure This_Not_Work =
struct
val hmm = "this confuses me"
end
end
然后用Why_Does.This_Not_Work.hmm
?
我得到一个Error: unbound structure: This_Not_Work in path Why_Does.This_Not_Work.hmm
例外
“结构”的拼写错误不是问题。我正在运行SM/NJ,所以在处理模块方面可能会有所不同。 –
@HenrikSommerland,它在SML/NJ也能很好地工作。你确定你没有输入错误或错误的东西吗? –
嗯.....我会给它更多的尝试! –