File: simple.om

package info (click to toggle)
omake 0.10.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,076 kB
  • sloc: ml: 49,729; ansic: 5,163; makefile: 688; sh: 110
file content (14 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
section
   private.x = 1
   f(arg) =
      println($"In f, x is $(private.x)")
      println($"Body is $(arg)")
   export f

private.x = 2

section
   println($"In section, x is $(private.x)")
   f()
      println($"In body, x is $(private.x)")
      value 10