Export marker

If a declared symbol is marked with an asterisk it is exported from the current module:

  1. proc exportedEcho*(s: string) = echo s
  2. proc `*`*(a: string; b: int): string =
  3. result = newStringOfCap(a.len * b)
  4. for i in 1..b: result.add a
  5. var exportedVar*: int
  6. const exportedConst* = 78
  7. type
  8. ExportedType* = object
  9. exportedField*: int