"CompiledFunctionData" (Compiled Type)
"CompiledFunctionData"::[ty]
represents a type that holds information about a compiled function of type ty.
Constructors
- Instances of "CompiledFunctionData" are typically created by compiled calls to CurrentCompiledFunctionData.
Operations
- For an instance of type "CompiledFunctionData", the following operations can be used:
-
obj["Name"] return the name of the function or Undefined if it is anonymous obj["Type"] return the type of the function obj["ReturnType"] return the return type of the function
Properties
- Information[obj,"Name"] for obj of type "CompiledFunctionData" returns the name of the function.
- Information[obj,"Type"] for obj of type "CompiledFunctionData" gives the type of the function.
- Information[obj,"ReturnType"] for obj of type "CompiledFunctionData" gives the return type of the function.
Examples
Basic Examples (2)
Compile a program that returns an incremental function object:
comp = FunctionCompile[Function[Typed[arg, "Integer64"], Print[CurrentCompiledFunctionData[]]; {arg}]];
comp[10]If CurrentCompiledFunctionData appears in a function with a name, this is included:
decl = FunctionDeclaration[DemoFunc, Typed[{"Integer64"} -> "PackedArray"::["Integer64", 1]]@Function[{arg}, Print[CurrentCompiledFunctionData[]];{arg}]];comp = FunctionCompile[decl, Function[Typed[arg, "Integer64"], DemoFunc[arg]]];
comp[10]Tech Notes
Related Guides
History
Introduced in 2025 (14.3)