Gor Gyolchanyan Wrote: > Hello, my dear, beloved D community. > > I've been reading literally all discussions on D.puremagic.com for about a > month now and I'm deeply concerned with my favorite language and it's > reference compiler. > > So, for starters, i decided to add a very useful (in my opinion) module to > phobos: etc.c.compat. > > Here's the pull request: > https://github.com/D-Programming-Language/phobos/pull/265 > > This module is supposed to help people develop bindings for C libraries, by > providing information language-specific information, depending on certain > compiler, processor architecture, operating system, etc. > > Currently there are only aliases for C built-in types, which are static > if-ed to have the correct size for the respective C compilers.
Isn't this almost exactly like stdint https://github.com/D-Programming-Language/druntime/blob/master/src/core/stdc/stdint.d except that it isn't based on target architecture and can specify specific compilers? Also how much do sizes differ between compilers?
