[Info-vax] Rust as a HS language, was: Re: Quiet?
Johnny Billquist
bqt at softjar.se
Sat Apr 9 06:45:43 EDT 2022
On 2022-04-08 22:21, Arne Vajhøj wrote:
> On 4/8/2022 4:12 PM, Bill Gunshannon wrote:
>> On 4/8/22 13:23, Arne Vajhøj wrote:
>>> On 4/8/2022 1:13 PM, Bill Gunshannon wrote:
>>>> As I stated elsewhere, the change to ANSI C from K&R broke
>>>> everything. You can not compile K&R with an ANSI C Compiler
>>>> and vice versa. What better time to fix it all?
>>>
>>> Not everything.
>>
>> If you can't compile K&R with an ANSI C compiler and you can't
>> compile ANSI C with a K&R compiler what exactly didn't get broken?
>
> I believe the breaking change was the function prototyping.
Hum. I don't know what the two of you are going on about. :-)
As far as I know, you can still compile a program that don't have
function prototypes in current C, and you can definitely do it in C89.
So K&R style code is still compilable. Obviously, "modern" C won't pass
the K&R compiler, but that's more expected.
But there might be something in old K&R code that is not acceptable in
newer compilers. I can't think of anything now, but that might just be me.
But array bounds checking is never going to be possible in C, since
arrays are mostly syntactic sugar to start with.
Johnny
More information about the Info-vax
mailing list