How to use (import (prefix …))

余生颓废 提交于 2019-12-08 04:10:57

问题


I'm trying to figure out how to use the

 > (import (prefix some-module :some-module))

docs are here

I found the example of the definition here.

Now, how do I then refer to a definition on it?

Here are some things I tried:

:some-module.baz some-module.baz :some-module:baz some-module:baz

None of them worked


回答1:


I got an answer in the #chicken irc room.

The example I saw with the colon in front of the prefix is wrong. It should be:

> (import (prefix some-module some-module:))

Then to use:

> (some-module:baz)


来源:https://stackoverflow.com/questions/46595258/how-to-use-import-prefix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!