file: job.t package: muf status: alpha
The finishAssembly
prim complete assembly
of a function and returns the resulting
compiledFunction
object.
If the force
argument is non-nil
, the
compiledFunction is assigned the specified
arity
without attempting to verify that
it is correct.
If the force
argument is nil
, the
assembler does a simple symbolic execution of
the function to deduce its arity (number of
blocks and scalars accepted and returned).
The simple symbolic execution algorithm is
sufficient to automatically deduce the arity
of many functions, but will currently fail
on recursive functions.
The arity
value may be constructed
using implodeArity
, or may be set
to -1
meaning "dunno".
The function
argument is a Class Function
instance in which to store info about the
generated compiledFunction
, including
for example the arity and the source code.
Go to the first, previous, next, last section, table of contents.