On Friday, March 16, 2012 16:00:47 Nick Sabalausky wrote:
> "Martin Nowak" <d...@dawgfoto.de> wrote in message
> news:op.wa9r9izqsqugbd@localhost...
> 
> > On Fri, 16 Mar 2012 15:53:45 +0100, Andrei Alexandrescu
> > 
> > <seewebsiteforem...@erdani.org> wrote:
> >> Just found this, has anyone tried dmd or friends on OpenBSD?
> >> 
> >> http://stackoverflow.com/questions/9698581/programming-in-d-for-openbsd
> > 
> > OpenBSD would need some druntime work.
> 
> Do you have anything in particular in mind?

Probably everything that's not straight Posix would require changes. For 
instance, every place that has a version(FreeBSD) block would probably need a 
version(OpenBSD) block. It's probably not all that hard to make the changes, 
but they'd still need to be done.

The very fact that Walter pushes for the model of

version(A) {}
else version(B) {}
else static assert("Unsupported OS");

means that _any_ new OS requires druntime work, even if it's minimal. That's 
not necessarily a bad thing, since there's a definite chance that the new OS 
requires additional changes specific to it anyway, but as long as there is 
sections of druntime are OS-specific without generic versions provided (which 
isn't going to change), you can't just use druntime with a new OS without 
updating druntime.

- Jonathan M Davis

Reply via email to