Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bs.noinline for external #779

Open
bobzhang opened this issue Sep 17, 2016 · 0 comments
Open

bs.noinline for external #779

bobzhang opened this issue Sep 17, 2016 · 0 comments

Comments

@bobzhang
Copy link
Member

bobzhang commented Sep 17, 2016

When testing, (especially combined with bs.raw, we woud like to localize the external functions)

for example

[%bs.raw{| function add (x,y){return x + y}
|}]
external add : int -> int -> int = "" [@@bs.noinline]

actually bs.noinline would make sense in mli file and ml file.

currently we can work around by manually writing mli file with val instead of extern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants