Search

January 18, 2009
Learn »
The following works for me (using LDC):

typedef int mint;
void foo (long i) {}
void...
January 18, 2009
Learn »
...the program, I had to replace the typedef with alias.  This works, but it also...
January 16, 2009
Learn »
The point of a typedef is to provide additional type safety. This would not exist...
January 15, 2009
Learn »
...B) I'm replying to a question as to how typedef could reasonably be extended.
January 12, 2009
Learn »
...a single clearly preferred conversion.   It seems to significantly reduce the utility of typedef.

--bb
January 12, 2009
Learn »
...the compiler is happy.

However, with a typedef, LocalType is a distinct type.  Yes it...
January 12, 2009
Learn »
...of long or byte when I do
typedef int LocalType;
LocalType t;
File f;
f...
January 11, 2009
Learn »
Bill Baxter:

You are right, typedef was invented before classes and OOP, so what you...
January 11, 2009
Learn »
...a new type without any 'alias' or
'typedef'.

I wouldn't cry if D2 made...
January 11, 2009
Learn »
...for index types.  Like this:

typedef size_t VertexHandle;
typedef size_t FaceHandle;

Now I...
204 205 206 207 208 209 210 211 212 213 214
Next ›   Last »