-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
RFC: fix #42345 (duplicate of #34862): Update to calling-c-and-fortran-code.md #42480
Conversation
Isn't it the best practice to always use BTW, I don't think it is necessary to strictly type |
According to the documentation section, Now consider the case of populating a Julia-managed segment of memory by means of an external C routine, then the
As for this comment, I disagree. Your suggestion would be inconsistent with every other example provided in the |
The doc is not always right and sometimes can be quite misleading. I guess you're referencing the following statement:
To me, this statement implies that if Why should users care about this at all? According to the following conversion methods defined in Base,
This is exactly a counterexample to the above statement about
As the mantra goes, "strictly type your types, loosely type your functions". I said it's not "necessary". In the case of wrapper functions, strictly type the functions may prevent some user-defined |
I think this can be closed based on #45206 |
Documentation issue #42345 was not present in v1.2.0 and first appears in v1.3.0.
I initially presumed the documentation accidentally got deleted, however, reading v1.2.0 docs the chopped paragraph appears to have been rightfully updated. (at least from what I gathered reading various releases of
calling-c-and-fortran-code.md
). Please review and ensure accuracy - This was new information for me.In summary, this pull request contains a condensing of the paragraph beneath the reported issue and a deleting of the extraneous/duplicated information.