J
jacob navia
Continuing the discussion about casts, I would like to know
your opinions about the hairy subject of casts as lvalues, i.e.
This will fail under lcc-win32, but MSVC and gcc will
accept it. I know that the standard prescribes the behavior
that lcc-win32 uses, but I left that behavior after a big
discussion about this several years ago. I had modified it,
and some people raised hell.
What are the problems of doing this? I mean not the usual
"the standard says so" but what problems would arise within the
language if this would be accepted?
Apparently gcc and msvc are still used, and this doesn't seem
to produce any big problems.
Thanks in advance for your comments, and I thank all people
that participated in the discussion yesterday.
jacob
your opinions about the hairy subject of casts as lvalues, i.e.
int main(void)
{
long long a;
char *n;
(char *)a = n;
}
This will fail under lcc-win32, but MSVC and gcc will
accept it. I know that the standard prescribes the behavior
that lcc-win32 uses, but I left that behavior after a big
discussion about this several years ago. I had modified it,
and some people raised hell.
What are the problems of doing this? I mean not the usual
"the standard says so" but what problems would arise within the
language if this would be accepted?
Apparently gcc and msvc are still used, and this doesn't seem
to produce any big problems.
Thanks in advance for your comments, and I thank all people
that participated in the discussion yesterday.
jacob