A little of coordination for Rosettacode
Jos van Uden
usenet at fwend.com
Tue Mar 5 02:48:41 PST 2013
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();
More information about the Digitalmars-d-learn
mailing list