Mike Stump wrote:
On Jul 9, 2006, at 10:52 PM, Vladimir 'Yu' Stepanov wrote:
I would like to offer one expansion for C/C++.
Did you just reinvent downcasting in C++? If so, C++ already has that
feature!? As for C, C, I'd claim C already has that feature[1], you
merely have to put in a #define into your library to make it look
pretty. In C, since this is a library issue, the compiler would be
the wrong place to put the feature. Since it can be done with a
macro, there is little need to change the grammar of the language.
I cannot to understand. I think what this feature is misses on C and
C++. Macros is
not good choice. Just macros is exclusive method for now. Given
expansion have more
clear syntax and mostly it is shortly. Macros is inconstant and cannot
do a type
verification.
> 1 - Contentious, should be decided by C committee IMHO.
Of course. But it is may be not go so far. And I don't know about any
email of
theirs (joke).
It is really not needed so often in existing style of programing. But
this feature may
be very usable for some other style of programing.
Thanks.