[Info-vax] Rust as a HS language, was: Re: Quiet?

Arne Vajhøj arne at vajhoej.dk
Sat Apr 9 17:45:45 EDT 2022


On 4/9/2022 6:45 AM, Johnny Billquist wrote:
> 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.

I had very limited exposure to K&R C.

I know that ANSI C added a bunch of features and changed
function headers from:

void f(a)
int a;
{

to:

void f(int a)
{

which is a trivial change but a change present a lot of places in code.

But are you saying that an ANSI C compiler also supports the
old style function?

Arne




More information about the Info-vax mailing list