File: sendrecv-autogroup.mcl

package info (click to toggle)
mgmt 0.0.26.git.2024.10.25.85e1d6c0e8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,364 kB
  • sloc: sh: 2,471; yacc: 1,285; makefile: 543; python: 196; lisp: 77
file content (32 lines) | stat: -rw-r--r-- 715 bytes parent folder | download
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
30
31
32
# send/recv of value1.any into print1.msg works!
value "value1" {
	any => "i am value1",
}
print "print1" {
	msg => "i am print1",

	Meta:autogroup => false,
}
Value["value1"].any -> Print["print1"].msg

# One of these will be autogrouped into the other! The inner one can receive!
# send/recv from value2.any into print2.msg works
# send/recv from value3.any into (the usually autogrouped) print3 works too!
value "value2" {
	any => "i am value2",
}
value "value3" {
	any => "i am value3",
}
print "print2" {
	msg => "i am print2",

	Meta:autogroup => true,
}
print "print3" {
	msg => "i am print3",

	Meta:autogroup => true,
}
Value["value2"].any -> Print["print2"].msg
Value["value3"].any -> Print["print3"].msg