On 5-3-2013 11:45, Jos van Uden wrote:
On 5-3-2013 2:05, bearophile wrote:
But if you fear that, then I've added "private" to all global identifiers:
http://rosettacode.org/wiki/Simple_database#D

I have removed "private" again, because it's bad to program compromises.
This is a complete program, it's not a module, and it's not imported. No need 
for private things.

// this shouldn't happen

test.d

import simdb;

void fun() {
     auto db = load();
     // etc
     store(db);
}

That can't happen. I really mean:

test.d
void fun() {
     auto db = load();
     // etc
     store(db);
}

simdb.d

import test;

fun();

Reply via email to