Skip to content
Discussion options

You must be logged in to vote

Name generation might change to address these issues #586, #763, but likely in a reasonable way. The reference counting, data layout, etc, are stable as far as I know.

To call a Koka function you just have to pass it the arguments of the right type, and the context.
Here is the documentation on kk_context_t.

typedef struct kk_context_s {

kk_get_context() allows you to get the thread-local context without an explicitly passed reference to it. I believe the passing of kk_context_t _ctx is to force the compiler to always keep it in a register.

Because the context has to do with effect handler machinery, you need to ensure that …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anatolay
Comment options

Answer selected by Anatolay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants