|
Re: C Language Help: msg#00199gcc.help
Hi John, >1) Let's say I have typedef'd "Abcde" and "Fghij" to "unsigned int". How do I get the following code to produce a warning, if not an error, if I do not explicitly cast? Answer to #1: use classes. Typedefs are simple aliases, they don't actually define a new type. Alternative answer to #1: use Ada. >2) How do I get the following code to produce a warning, if not an error, if I do not explicitly cast? Answer to #2: use classes. Int, signed int, and unsigned int are implicitly converted. Sad, I know, I hate it too. Alternative answer to #2: use Ada. Sincerely, --Eljay |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | C Language Help: 00199, John Anthony Kazos Jr. |
|---|---|
| Next by Date: | Re: Problems to link C++ files to a Fortran 77 file: 00199, Eljay Love-Jensen |
| Previous by Thread: | C Language Helpi: 00199, John Anthony Kazos Jr. |
| Next by Thread: | Dear Gcc-help - Great Books on Best Practices in Business and Management: 00199, jasmine |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |