xxxxxxxxxx
import std;
class File
{
// WIN32_FIND_DATAW data;
char[ 255 ] data;
}
void fastReadDir()
{
File[] files;
// reserve space, allocating instances
files = new File[]( 1000 ); // <--- trouble here ?
// filling instances
auto file = files.ptr;
writeln( file.data ); // <--- or trouble here ?
// ...
}
void main()
{
fastReadDir();
}