[Info-vax] VMS Cobol - GnuCOBOL

Denys Beauchemin denysftr at gmail.com
Fri Feb 24 12:28:24 EST 2023


On Friday, February 24, 2023 at 8:05:33 AM UTC-6, Arne Vajhøj wrote:
> On 2/23/2023 6:43 PM, Arne Vajhøj wrote: 
> > And C# is not like C at all. Besides using curly braces and 
> > having the 3 arg for loop then I do not see much similarity. 
> > 
> > Just compare the hello worlds: 
> > 
> > #include<stdio.h> 
> > 
> > int main() 
> > { 
> >     printf("Hello world!\n"); 
> >     return 0; 
> > } 
> > 
> > VS: 
> > 
> > using System; 
> > 
> > public class HelloWorld 
> > { 
> >     public static void Main(string[] args) 
> >     { 
> >         Console.WriteLine("Hello world!"); 
> >     } 
> > } 
> > 
> > (C# pre-V9.0)
> And in case someone wonder if C# 9.0 broke hello world. 
> 
> The above hello world still compiles and run fine with 
> C# 9.0 and later. 
> 
> But it can be written as: 
> 
> using System; 
> 
> Console.WriteLine("Hello world!"); 
> 
> :-) 
> 
> Arne
Maybe it's just me but if we are now arguing about the definition of C, C++, C#, C- and Cigar, we are no longer focused on migrating a COBOL application.

This makes my case, that converting COBOL to C (any C) for the purposes of a migration is a bad idea for anything beyond an intellectual exercise.



More information about the Info-vax mailing list