Philosophy of how OS API imports are laid out in druntime

Regan Heath regan at netmail.co.nz
Thu Mar 6 06:39:05 PST 2014


On Thu, 06 Mar 2014 11:40:55 -0000, Kagamin <spam at here.lot> wrote:

> It can be a module pragma:
>
> pragma(restrictImportTo,"core.sys.posix.ucontext")
> module ports.linux.ucontext;

Good idea, then the platform specific modules can only define the platform  
specific things.

But, it means when maintaining them you inherently have to consider posix,  
making the burden a little higher.  Which runs counter to Walter's goal I  
think.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list