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

[c-ffi] Add a new error-condition result type. #803

Merged
merged 3 commits into from Jul 22, 2014

Conversation

Projects
None yet
2 participants
@fracek
Member

fracek commented Jul 20, 2014

This helps writing better wrappers for C libraries where the
return value is used to signal if the function did error.

Show outdated Hide outdated sources/dfmc/c-ffi/c-function-macro.dylan
@@ -158,10 +159,15 @@ define method parse-early-options
collecting (return-values, arg-fragments, parameters, parameter-names)
let result-fragment = #f;
let vname = result-spec.name;
// 1

This comment has been minimized.

@waywardmonkeys

waywardmonkeys Jul 20, 2014

Member

This can be removed.

@waywardmonkeys

waywardmonkeys Jul 20, 2014

Member

This can be removed.

@waywardmonkeys

This comment has been minimized.

Show comment
Hide comment
@waywardmonkeys

waywardmonkeys Jul 20, 2014

Member

I think this would be a bit more clear if this was error-result instead of error-condition so that it matches with result, especially for the warning about multiple results (which I was very glad to see you'd included).

Member

waywardmonkeys commented Jul 20, 2014

I think this would be a bit more clear if this was error-result instead of error-condition so that it matches with result, especially for the warning about multiple results (which I was very glad to see you'd included).

@waywardmonkeys

This comment has been minimized.

Show comment
Hide comment
@waywardmonkeys

waywardmonkeys Jul 20, 2014

Member

We'll also hold off on merging this until the documentation and release notes are updated!

Member

waywardmonkeys commented Jul 20, 2014

We'll also hold off on merging this until the documentation and release notes are updated!

fracek added some commits Jul 19, 2014

[c-ffi] Add a new error-condition result type.
This helps writing better wrappers for C libraries where the
return value is used to signal if the function did error.

waywardmonkeys added a commit that referenced this pull request Jul 22, 2014

Merge pull request #803 from fracek/c-ffi-error-condition
[c-ffi] Add a new error-condition result type.

@waywardmonkeys waywardmonkeys merged commit 56038ee into dylan-lang:master Jul 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment