[phobos] review for environment

Jonathan M Davis jmdavisProg at gmx.com
Thu Nov 4 15:04:11 PDT 2010


On Thursday, November 04, 2010 11:55:47 Robert Jacques wrote:
> On Thu, 04 Nov 2010 06:34:58 -0400, Jonathan M Davis <jmdavisProg at gmx.com>
> wrote:
> [snip]
> 
> > Regardless, I think that using a final,
> > uninstantiatable class is the best way to create a namespace within a
> > module in
> > D at the moment.

That's essentially what you're doing except that it's a class rather than a 
struct. And since structs _have_ to be constructable (thanks to them having to 
have an init property), it works better to use a class which you can stop from 
being constructed.

- Jonathan M Davis


More information about the phobos mailing list