Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
Value Struct Reference

Tagged union representing a Fun value. More...

#include <value.h>

Collaboration diagram for Value:

Data Fields

ValueType type
union { 
   int64_t   i 
   double   d 
   char *   s 
   struct Bytecode *   fn 
   struct Array *   arr 
   struct Map *   map 
}; 

Detailed Description

Tagged union representing a Fun value.

The active field in the anonymous union is determined by ValueType in the type tag. Ownership/RC semantics for complex members (arrays/maps) are defined by the array/map APIs.

Definition at line 68 of file value.h.

Field Documentation

◆ [union]

union { ... }

◆ arr

struct Array* arr

Definition at line 75 of file value.h.

◆ d

double d

Definition at line 72 of file value.h.

◆ fn

struct Bytecode* fn

Definition at line 74 of file value.h.

◆ i

int64_t i

Definition at line 71 of file value.h.

◆ map

struct Map* map

Definition at line 76 of file value.h.

◆ s

char* s

Definition at line 73 of file value.h.

◆ type

Definition at line 69 of file value.h.


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