newPrimitiveRawFunction

fun newPrimitiveRawFunction(primitive: Primitive, module: A_Module, lineNumber: Int): A_RawFunction

Construct a bootstrapped A_RawFunction that uses the specified primitive. The primitive failure code should invoke the SpecialMethodAtom.CRASH's bundle with a tuple of passed arguments followed by the primitive failure value.

Return

A function.

Parameters

primitive

The Primitive to use.

module

The module making this primitive function.

lineNumber

The line number on which the new function should be said to begin.