1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
imports.searchPath.unshift('.');
const Lang = imports.lang;
const Values = imports.values;
function main (argv) {
var v = new Values.Values ({tellers: ["hello", "world"], domain: "Sweden"});
v.listen ("hello", function () {
print ("Hello");
});
v.listen ("hello", function () {
print ("Hello again!");
});
v.listen ("world", function () {
print ("world");
});
v.listen ("world", function () {
print ("World again!");
});
v.tell ("hello");
v.tell ("world");
print ();
}
main (ARGV);
|