Jl_value_t value in julia source code

I am trying to find the path to the Julia source code, namely codegen.cpp. They use a structure jl_value_tthat refers to itself:

#define JL_DATA_TYPE \
    struct _jl_value_t *type;

typedef struct _jl_value_t {
    JL_DATA_TYPE
} jl_value_t;

When debugging source code in eclipse, this does not seem to contain any useful information, however it is used very often. How to interpret this structure? What information does it contain?

+4
source share
1 answer

, () , C. , , C , .

, jl_value_t*. (, jl_is_type(v), jl_is_long(v), jl_is_symbol(v), jl_is_typevar(v), jl_is_bool(v)). , , src/julia.h.

+6

Source: https://habr.com/ru/post/1527180/


All Articles