Skip to content

Documentation issue: Sub-module is not documented #101

@IngwiePhoenix

Description

@IngwiePhoenix

Consider the following example:

public module A {
  public module B {
    public var C = "C";
    public function greet() { print("Yo"); }
  }
}

This example and usage (sub-modules) is unfortunately not documented here: https://www.embedthis.com/ejscript/doc/language/modules.html

On a side-note: What also seems to be missing is the visibility qualifier usage for modules. See:

module D {
  var E = "E";
  public var F = "F";
}
require D
print("D"::E);
print("D"::F);

E will be printed, but F won't. :)

I am using:

  • OS: Mac OS 10.14.2
  • Latest commit from master
  • Recently updated XCode toolchain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions