Skip to content
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

Add -forcec option to force C calling convention for D functions. #868

Closed
wants to merge 1 commit into from
Closed

Add -forcec option to force C calling convention for D functions. #868

wants to merge 1 commit into from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Apr 5, 2012

As discussed on the NG.

I'm not entirely sure whether this covers all cases, but through grepping the source, this seems to be the place to add it.

@deadalnix
Copy link
Contributor

What about explicit extern(D) ? This is an open question.

@alexrp
Copy link
Member Author

alexrp commented Apr 5, 2012

As intended, that will use D name mangling, but use C calling convention when you pass -forcec.

@ghost
Copy link

ghost commented Apr 5, 2012

But how are you supposed to link apps with libraries that are compiled this way? And especially multiple libraries where one was compiled with -forcec and the other was not.

@alexrp alexrp closed this Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants