Thoughts on std.system.OS

Jonathan M Davis jmdavisProg at gmx.com
Sat Aug 13 03:23:08 PDT 2011


On Saturday, August 13, 2011 13:18:29 Vladimir Panteleev wrote:
> On Sat, 13 Aug 2011 08:08:09 +0300, Jonathan M Davis <jmdavisProg at gmx.com>
> 
> wrote:
> > Thoughts on std.system.OS? Is there a good reason to leave it? In
> > principle, it's a nice idea, but I just don't see how it can deliver.
> > And if it can't deliver, it should be removed IMHO. What do you think?
> 
> Why not use uname on non-Windows systems, and report the kernel version?

That's certainly a thought, but that could get entertaining to get the enum 
values from that. As long as the various distros are consistent in their 
naming schemes between their releases though, that _should_ be possible. That 
may be worth trying though.

- Jonathan M Davis


More information about the Digitalmars-d mailing list