on master help sign in
docs for /+ and /-
commit1377b6740ed559da4ea9bb34284f1dff7350823c authorTed Blackman <ted@tlon.io> dateTue 5 Sep 2017, 17:49 (9 years ago) parentfd9e4a6
1 file changed+29
docs/arvo/internals/ford/runes.md+29
docs/arvo/internals/ford/runes.md+29
@@ -200,3 +200,32 @@ i.liz
200200produces: `1`
201201
202202Without the cast, we wouldn't be able to access the 'i' face of the list.
203+
204+### `/+` import from lib/
205+
206+The `/+` rune accepts a filename as an argument. It interprets that filename
207+as a hoon source file within the `lib` directory. This is how we import a shared
208+library in urbit.
209+
210+Example:
211+```
212+/+ time-to-id
213+::
214+(time-to-id now)
215+```
216+produces: `"c.314d"` (or something similar depending on when you run it)
217+
218+### `/-` import from sur/
219+
220+The `/-` rune accepts a filename as an argument. It interprets that filename as
221+a hoon source file within the `sur` directory. The `sur` directory contains
222+shared structures that can be used by other parts of urbit. This is somewhat
223+similar to including a header file in C.
224+
225+Example:
226+```
227+/- talk
228+::
229+*serial:talk
230+```
231+produces: `0v0`