On Friday, 22 March 2013 at 10:13:15 UTC, Jacob Carlborg wrote:
On 2013-03-22 09:33, Jens Mueller wrote:

Skipping (bool, ...) is covered by "at most one", isn't it? Do you have
an example where one C include results in several D imports?

// a.h
int a;

// b.h
#include <a.h>

// main.c
#include <b.h>

int main (int c, char** v) { a = 3; }

The above should work. If you translate that code to D and only replaces the include with one import you won't have access to the "a" variable.

Shouldn't all C includes become public imports?

Reply via email to