This removes the exclusive from the res names and edge names. We now require that the names should be lists of strings, however they can still be single strings if that can be determined statically. Programmers should explicitly wrap their variables in a string by interpolation to force this, or in square brackets to force a list. The former is generally preferable because it generates a small function graph since it doesn't need to build a list.
15 lines
341 B
Plaintext
15 lines
341 B
Plaintext
-- main.mcl --
|
|
# This sort of thing is not currently supported, and not sure if it ever will.
|
|
|
|
# test generating a function
|
|
class funcgen1 {
|
|
func fun1() {
|
|
"hi"
|
|
}
|
|
}
|
|
include funcgen1
|
|
$x1 = fun1() # not funcgen1.fun1 since it's *not* an import!
|
|
test "${x1}" {} # hi
|
|
-- OUTPUT --
|
|
# err: errSetScope: func `fun1` does not exist in this scope
|