extern(C) function declarations and extra keywords.

Jacob Carlborg doob at me.com
Sun Dec 29 02:53:32 PST 2013


On 2013-12-28 22:47, Jeremy DeHaan wrote:

> Since the C functions can't access anything from D code save for what is
> passed through as parameters, can it be called pure? And if so, does the
> compiler know how to distinguish C and D in this instance and make it
> inherently pure? Does purity do anything in terms of speed/safety here?

It can access global variables.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list