File: object.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 (16 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
X. =
   X = 1
   Y = 2
   F(Z) =
      return($(X) + $(Y) + $(Z))
   G(Z) =
      W = $(F $(Z))
      println(G[$(Z)] = $(W))

Y = $(X.F 3)

println(The following line should be: Y = 1 + 2 + 3)
println($"Y = $(Y)")

println(The following line should be: G[3] = 1 + 2 + 3)
X.G(3)