Proposal for a standard for D library naming

Gregor Richards Richards at codu.org
Tue Sep 19 08:08:40 PDT 2006


Anders F Björklund wrote:
> Gregor Richards wrote:
> 
>> A Modest Proposal for Standardization in Naming of D Libraries
>> --------------------------------------------------------------
>> (by Gregor Richards)
> [...]
>> If anything is confusing here, please respond, and I will attempt to
>> clarify. It's all quite clear in my head :)
> 
> Just to check I understood this, would these be standard names:
> 
> /usr/include/d/sdl/*
> /usr/lib/libD.sdl.a
> 
> /usr/include/d/gl/*
> /usr/lib/libD.gl.a
> 
> /usr/include/d/wx/*
> /usr/lib/libD.wx.a
> 
> For the modules under "sdl." and "gl." and "wx." , respectively ?
> 
> --anders

That would be one means of dividing it.

Mind you, I'm not inclusive of include files, they are not in the scope 
of the text.

Furthermore, you could subdivide, if you wanted.  For example, if you 
have this:

/usr/include/d/sdl/amazingsdlplugina/*
/usr/include/d/sdl/*

You can do either one library:

libD.sdl.<extension>

Or more:

libD.sdl.<extension>
libD.sdl.amazingsdlplugina.<extension>

, so long as a module can always be found in the most specific, extant 
library.

  - Gregor Richards



More information about the Digitalmars-d mailing list