Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
function_payload Struct Reference

Payload of a function cell. More...

#include <consspaceobject.h>

Collaboration diagram for function_payload:
[legend]

Data Fields

struct cons_pointer(* executable )(struct stack_frame *, struct cons_pointer, struct cons_pointer)
 pointer to a function which takes a cons pointer (representing its argument list) and a cons pointer (representing its environment) and a stack frame (representing the previous stack frame) as arguments and returns a cons pointer (representing its result).
 
struct cons_pointer meta
 pointer to metadata (e.g.
 

Detailed Description

Payload of a function cell.

source points to the source from which the function was compiled, or NIL if it is a primitive. executable points to a function which takes a pointer to a stack frame (representing its stack frame) and a cons pointer (representing its environment) as arguments and returns a cons pointer (representing its result).

Definition at line 474 of file consspaceobject.h.

Field Documentation

◆ executable

struct cons_pointer(* executable) (struct stack_frame *, struct cons_pointer, struct cons_pointer)

pointer to a function which takes a cons pointer (representing its argument list) and a cons pointer (representing its environment) and a stack frame (representing the previous stack frame) as arguments and returns a cons pointer (representing its result).

Todo:
check this documentation is current!

Definition at line 478 of file consspaceobject.h.

◆ meta

struct cons_pointer meta

pointer to metadata (e.g.

the source from which the function was compiled).

Definition at line 478 of file consspaceobject.h.


The documentation for this struct was generated from the following file: