??? 01/15/05 17:33 Read: times |
#85021 - One More Test Responding to: ???'s previous message |
It gives Error E143 "Too many initialisers" once on row 1, twice on row 2, and thrice on row 3...
Hmmm. OK. How about another little test. char key_tbl[][] = { { 1, 2, 3, 4 }, // row 0 { 5, 6, 7 }, // row 1 { 8, 9, 10 }, // row 2 { 11, 12, 13 }, // row 3 }; I expect that this will compile with the Tasking compiler. However, since the first row has more initializers than are actually desired (required) each additional row should be padded with 0's. I'm not sure this level of presumption by the compiler is appropriate. It is certainly one (of many) ways to handle such a situation. However, I think a more restrictive interpretation of the source code is better--it forces the author to state specifically what he means rather than force the compiler to make assumptions. Jon |
Topic | Author | Date |
Philips sample code/Keil problems | 01/01/70 00:00 | |
Why don't you ask Philips? | 01/01/70 00:00 | |
Re: Why don't you ask Philips? | 01/01/70 00:00 | |
Re: Ask Philips? | 01/01/70 00:00 | |
Re: Ask Philips? | 01/01/70 00:00 | |
Link | 01/01/70 00:00 | |
Re: useful App Note | 01/01/70 00:00 | |
87 89 | 01/01/70 00:00 | |
Re: 87 89 | 01/01/70 00:00 | |
Tasking. | 01/01/70 00:00 | |
Re: Tasking | 01/01/70 00:00 | |
Keil? | 01/01/70 00:00 | |
Re: Keil | 01/01/70 00:00 | |
Linking | 01/01/70 00:00 | |
Linked! | 01/01/70 00:00 | |
Re: Linked | 01/01/70 00:00 | |
Linking | 01/01/70 00:00 | |
Re: Tasking | 01/01/70 00:00 | |
reply | 01/01/70 00:00 | |
Dunfields or Tasking? | 01/01/70 00:00 | |
Tasking | 01/01/70 00:00 | |
2D Array problem | 01/01/70 00:00 | |
Compiler can deduce size. | 01/01/70 00:00 | |
can, but doesn't have to! | 01/01/70 00:00 | |
Fully Bracketed Initializers | 01/01/70 00:00 | |
Ask Keil | 01/01/70 00:00 | |
C99 vs. C90 | 01/01/70 00:00 | |
Compiler deducing array size | 01/01/70 00:00 | |
Tasking Compiler deduces array size! | 01/01/70 00:00 | |
Which Array? | 01/01/70 00:00 | |
That Array! | 01/01/70 00:00 | |
One More Test![]() | 01/01/70 00:00 |