Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1751

How to combine @send and @new

$
0
0

Hi,

I’m a situation where I need to create bindings for the following:

import kaplay from "kaplay";
let k = kaplay()
let v = new k.Vec2(2,3)

This sorta both needs @send and @new, but that leads to You used a FFI attribute that can't be used with @send.

How do I work around this?


Viewing all articles
Browse latest Browse all 1751

Trending Articles