-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added cmpMem export #16484
Added cmpMem export #16484
Conversation
general style guide see timotheecour#415
|
instead of exporting a new symbol in system, how about creating a new low-level stdlib module (note, there's already As usual, code duplication can be avoided by using intermediate private modules, eg |
## Compares the memory blocks ``a`` and ``b``. ``size`` bytes will | ||
## be compared. | ||
## | ||
## Returns: |
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.
needs a runnableExamples + test in tests/stdlib/
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.
runnableExamples doesn't work, I'm getting line 49: invalid identation
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.
@planetis-m that's because you need =
in proc declaration; followup PR welcome
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.
That would refactor the system module, I guess there is a good reason it was written that way, if you need runnableexamples so bad you can try.
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.
indeed, see nim-lang/RFCs#309
Yeah, I agree. However, this should be done later, for now it's conistent with copyMem and friends. |
Thanks for the review everyone, I will address all your comments today (so don't merge yet). |
Can't work, I tried it and getting ambiguous calls. It would be a breaking change. |
* added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
Currently there are
zeroMem
,copyMem
,moveMem
,equalMem
butnimCmpMem
is missing an export name.