C-binding external array.
    ciechowoj via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Aug  9 06:53:36 PDT 2016
    
    
  
Is there a way to access a static array from D without knowing 
the size of the array?
Let suppose there is an array, somewhere in lib.c.
int tab[64];
and there is header file lib.h with following reference:
extern int tab[];
How to declare `tab` in the D code without knowing the size of 
the array? In other words, how to map external declaration of the 
`tab` to the D code?
    
    
More information about the Digitalmars-d-learn
mailing list