mohawk2 / nativecall

6 stars 0 forks source link

allow closure types #1

Closed plicease closed 7 years ago

plicease commented 7 years ago

This lets you use closure types which look something like this: (int)->int or (int,int)->int.

plicease commented 7 years ago

Thanks for DC.PM (http://dc.pm.org) for working through how to get closures to work last night!

I've combined #1, #2, #3 and #4 as well as a .gitignore into my combined branch: https://github.com/plicease/NativeCall/tree/combined with the conflicts already fixed.

mohawk2 commented 7 years ago

I do like using /r in code, but since this module is a bit toolchain-ish, I don't want to require 5.14. Could you rework it to not need /r?

mohawk2 commented 7 years ago

Also there's no docs to explain what the "closure type" actually means!

mohawk2 commented 7 years ago

Having read and merged #2 I'm now happy with the 5.14 and the /r. We still need a note in the docs to say this thing is possible, though.

mohawk2 commented 7 years ago

Could you rebase this and help out with the conflicts that arise? A suitable .gitignore would be really helpful too!

plicease commented 7 years ago

sure will address this tomorrow.

plicease commented 7 years ago

rebased, gitignored and documented.