How to use (import (prefix ...))

Viewed 524

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 Answers

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)
Related