Skip to content

Commit 71d006c

Browse files
authored
docs(#500): generalise _ to ancestors (#535)
1 parent 324b4e9 commit 71d006c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WYBE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,10 @@ Sometimes you may wish to specify which module the procedure *name* exists in.
329329
You can further specify which module the procedure *name* is from by preceding
330330
*name* with a `.` separated module specification, such as *parent*`.`*mod*`.`*name*.
331331

332-
As a convenience, if the first module name in a module specification is `_`, the
333-
`_` is equivalent to the current module. For example in a module named `foo`,
334-
`_.`*name* is equivalent to `foo.`*name*
332+
As a convenience, if the leading module names in a module specification are `_`, the
333+
series of `_` are equivalent to a prefix of the current module. For example in a
334+
module named `foo.bar`, `_.`*name* is equivalent to `foo.bar.`*name*, and `_._`*name*
335+
is equivalent to `foo.`*name*.
335336

336337
A procedure call must be preceded by an exclamation point (`!`) if it uses any
337338
resources, as described in the section on

0 commit comments

Comments
 (0)