January 18, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
The following works for me (using LDC):
typedef int mint;
void foo (long i) {}
void... | |||
January 18, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...the program, I had to replace the typedef with alias. This works, but it also... | |||
January 16, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
The point of a typedef is to provide additional type safety. This would not exist... | |||
January 15, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...B) I'm replying to a question as to how typedef could reasonably be extended. | |||
January 12, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...a single clearly preferred conversion. It seems to significantly reduce the utility of typedef. --bb | |||
January 12, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...the compiler is happy. However, with a typedef, LocalType is a distinct type. Yes it... | |||
January 12, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...of long or byte when I do typedef int LocalType; LocalType t; File f; f... | |||
January 11, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
Bill Baxter: You are right, typedef was invented before classes and OOP, so what you... | |||
January 11, 2009 Learn » Re: Foreach problem | |||
|---|---|---|---|
| |||
...a new type without any 'alias' or 'typedef'. I wouldn't cry if D2 made... | |||
January 11, 2009 Learn » Re: using a typedefed variable with library classes | |||
|---|---|---|---|
| |||
...for index types. Like this: typedef size_t VertexHandle; typedef size_t FaceHandle; Now I... | |||
Copyright © 1999-2021 by the D Language Foundation