engine: resources: Add new value resource

This is a strange resource which is probably most useful for passing
values between scopes. It supports a variant resource field, and should
only be used as a last resort and if you know exactly what you're doing.
This commit is contained in:
James Shubin
2023-11-18 14:02:17 -05:00
parent 47c441ba40
commit 88b414b9a3
3 changed files with 219 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
value "hello1" {
#value => 42, # can be any type
value => "wow", # can be any type
}
value "hello2" {
value => "whatever", # TODO: remove the temporary placeholder here
#value => "", # XXX: remove any placeholder to see the bug when absent
}
test "test" {
#anotherstr => "", # get it from send/recv
}
Value["hello1"].value -> Value["hello2"].value
Value["hello2"].value -> Test["test"].anotherstr