DMD 1.036 and 2.020 releases

bearophile bearophileHUGS at lycos.com
Wed Oct 22 14:22:04 PDT 2008


Sean Kelly:
> Alternatives to core are: lang, d, base...  But I like core the best so far.

"d" is the name of the package my libs, so I hope you will use something different :-) (But this isn't really much important).

A possible organization (if technically possible) that looks more symmetric to me is to keep the std as core and push the rest of phobos into a phobos package:

import std.gc; // the common core
import phobos.md5; // from Phobos
import tango.foo; // from tango

In Python standard modules aren't in a top-level package, so you just do:

import collections
from gc import enable, disable

Following that Python style it may become:

import gc; // the common core
import phobos.md5; // from Phobos
import tango.foo; // from tango

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list