Re: (part 21) Han from China answers your C questions
Tim Rentsch <txr@alumnus.ca ltech.eduwrote:
During the C89 deliberations, the committee considered a "Miranda rule"
("You have the right to a prototype. If you cannot afford a prototype,
one will be appointed for you.") that would allow old-style function
definitions to serve as prototypes, but it was reject for fear of
breaking too much old code.
--
Larry Jones
Fortunately, that was our plan from the start. -- Calvin
Tim Rentsch <txr@alumnus.ca ltech.eduwrote:
>
if compilers simply started reporting this as an error
(which certainly seems reasonable, since it is guaranteed
UB if ever executed), then the standard committee might be
convinced to let such function definitions serve as prototypes.
if compilers simply started reporting this as an error
(which certainly seems reasonable, since it is guaranteed
UB if ever executed), then the standard committee might be
convinced to let such function definitions serve as prototypes.
("You have the right to a prototype. If you cannot afford a prototype,
one will be appointed for you.") that would allow old-style function
definitions to serve as prototypes, but it was reject for fear of
breaking too much old code.
--
Larry Jones
Fortunately, that was our plan from the start. -- Calvin
Comment