Deimos: Consistent structure?

Dejan Lekic dejan.lekic at gmail.com
Mon Nov 21 07:05:07 PST 2011


Yes. Thanks for reminding us. We discussed this as well on 
irc://irc.freenode.org/d ... I absolutely agree that if Deimos is 
"installed" (or mayber better say "enabled"), then dmd.conf should contain 
the abovementioned include line.

About the <project_> package... It *should not* be imported directly by a 
user (developer). It should be imported by the module inside the deimos 
package.

So we would have:

import deimos.lzma; // imports deimos.lzma_.delta and deimos.lzma_.index

As I wrote in one of my previous posts, it should be one-to-one 
correspondence between deimos modules, and libraries.

So, liblzma binding would have only one module: deimos.lzma, while ncurses 
binding will have 3 (or 4): deimos.ncurses, deimos.panel, deimos.menu, 
deimos.form . 

Why? - Because each import will trigger a different library as well. For 
deimos.ncurses you need -lncurses flag, for deimos.panel you need the -
lpanel flag for the linker, and so on.

Regards


More information about the Digitalmars-d mailing list