Closed ta0kira closed 3 years ago
Another option is to add a procedure pragma to indicate a function to use for a binary.
concrete MyBinary {
@type run () -> ()
}
define MyBinary {
run () { $CreateBinary["MyBinary"]$
// ...
}
}
The main issue here are:
I'll reopen this if it turns out to be problematic.
The main reason to allow this, vs. requiring one module per binary, is to allow multiple binaries to utilize the same private code, whether it's in the same
.0rx
or in$ModuleOnly$
sources. The current compromise would be to hide that code in a submodule with a name likeinternal
.This is probably an easy fix, but it will require turning
CompileBinary
into a list. Or, just makingCompileBinary
a separate object and then updating (and renaming)CompileIncremental
to contain a list ofCompileBinary
.