A package that names the files to compile

The complete source of packaging_includes.ek9, compiled by the EK9 compiler. Shown on packaging.html.

#!ek9
defines module site.packaging.includes

  references
    site.packaging.includes.maths::PI
    site.packaging.includes.physics::SPEED_OF_LIGHT

  defines package

    version <- 1.0.0-0
    description <- "Example of different constants in different modules."

    //We only want this file and these two to be compiled.
    includeFiles <- [
      "packaging_includes_maths.ek9",
      "packaging_includes_physics.ek9"
      ]

  defines program
    ShowConstants()
      stdout <- Stdout()
      stdout.println(`Pi is ${PI} and the speed of light is ${SPEED_OF_LIGHT}`)

Download packaging_includes.ek9

Output

Pi is 3.14159 and the speed of light is 299792458