[dmd-internals] type inconsistency in the source code

Leandro Lucarella luca at llucax.com.ar
Fri Jan 27 15:04:41 PST 2012


mrmocool at gmx.de, el 27 de enero a las 17:38 me escribiste:
> >>I would personally love to have a set of types that look natural and
> >>clear like in D, i.e. without some crappy prefix d_ or suffix _t
> >>like int32,uint32,...
> >
> >They are already there:
> >#include <stdint.h>
> >int32_t, uint32_t, etc. Sorry but C (and C++ in this case inherits
> >C stdlib) uses the _t suffix for typedefs.
> 
> I know. But _t doesn't look natural. In the end it's a D compiler,
> so why not introduce some good practice :)

Well, it's a matter of taste really, I like the _t, I don't see how is
a bad practice (in C at least makes a lot of sense). Also, even being
a D compiler, is written in C/C++ and you already have those types
there, I thought part of your improvements were to remove artificial
typedef with strange names.

Anyway, I don't care that much...

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
We are born naked, wet and hungry
Then things get worse


More information about the dmd-internals mailing list