generalized lvalues -- patch outline

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Nov 23 15:51:00 GMT 2004


Michael Matz <matz@suse.de> writes:

[...]

| The only C++ packages in which I see this is alsamixergui, chasen, 
| knights, libebml and licq, so I personally would be thankful already for 
| having such extension only in C.

Such C++ prckages can use reinterpret_cast<>.

C packages can use dedicated macros, if they really think the need
that sheating.   

| Practically speaking 4.0 is currently strictly less usefull in some 
| aspects for the average C programmer.

Well,  you and I have different notions of "average programmer".
Obvioulsy the cast-as-lvalue abomination is not something the averaget
programmer would jump into.

Probably, this sort of situations probably happen because some people
have been encouraged in conceiving programming as an activity of
throwing random codes to the compiler and see what happens.

:-(

-- Gaby



More information about the Gcc mailing list