3 ms·
int * - pointer to int. int const * - pointer to const int. int * const - const pointer to int. int const * const - const pointer to const int. I'm not sure
by n00b101 13y ago
int * - pointer to int.
int const * - pointer to const int.
int * const - const pointer to int.
int const * const - const pointer to const int.
I'm not sure what type of grammar could have been used to make this easier. Nobody said that indirection is easy, but indirection IS essential.
- a3n 13y agoEverything on the right of the dash in your example, or something like it. If you have to use other words to describe what something is, why not use the other words in the first place?
- wtallis 13y agoAll he did was reverse the order of the types. Right-to-left parsing really isn't that complicated, and mimicking English grammar is not as good an idea as you think it is.
- angrycoder 13y agoCOBOL++, hey it still has a C in it.
- ithkuil 13y agoADD 1 TO COBOL GIVING COBOL (well to be fair, 'add 1 to cobol' should be enough)
- frankzinger 13y agoBecause it requires too much typing, especially for something you use all the time. Seriously, the syntax is not that difficult to understand and remember.