-
Notifications
You must be signed in to change notification settings - Fork 5
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
[WIP] High level api #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice start, here are a couple of pointers to improve the wrapping
Now almost all functions from the "Arithmetic Functions" are wrapped (left out a few odd ones). I also tried to make it nimble installable by renaming and moving some things. On my machine, it works at least. Travis and Appveyor seem to disagree (are they on an older version perhaps?). I did also add templates for adding This should definitely be ready for a test ride now. I have lots of more tests to write, and documenting all procs with a |
Whoops, this passed under my radar, flooded with Github updates. You shouldn't move to the
Don't hesitate to ping me on IRC/Gitter if I forget again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last commit can be reverted. I can take care of the directory structure. The other commits are good.
Hehe 😅 I got a bit too ambitious here. Should have realized it made a big mess of it all 🤣 Thank for handling it :-) Your feed must be bombarded with updates all the time, amazed that you can handle it 😄 I'll keep on working on this then 😉 |
I think that's it 😅 Documentation comments are added to all non-obvious procs and next to everything should be covered in the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, it's just missing the auto deletion but I'll add it myself
Awesome 😄 You know those stuff better than I do 👍😉 |
Hi, I found this project and it seemed like a good first project for interfacing with C (all the hard work has already been done by you 😉). Before I went any further with this I wanted to hear from you if my approach is reasonable or if it has any big flaws. This is my first time working with pointers so I may have gotten something wrong. I wrote a few tests that can be run with
nimble test
and they seem to work.My thought is that we call the
ptr mpd_t
DecimalType
instead for readablitity and we can initialize from ints and strings withnewDecimal()
.What do you think? 😄