[Info-vax] VMS Cobol - GnuCOBOL

Arne Vajhøj arne at vajhoej.dk
Sat Feb 25 09:10:47 EST 2023


On 2/25/2023 5:56 AM, Neil Rieck wrote:
> On Friday, February 24, 2023 at 8:20:19 AM UTC-5, Simon Clubley
> wrote:
>> On 2023-02-23, ultr... at gmail.com <ultr... at gmail.com> wrote:
>>> I HELPED MY SON WITH C++ AND C# IN COLLEGE ... SAME OLD C SAME
>>> OLD COMPILER/DEBUGGER ISSUES
>> If you consider C# to be in any way related to C, then you are
>> _very_ seriously delusional.
> 
> Back in the day when Dr. Dobbs was still being published, I recall
> seeing an article comparing Java to C#. The article contained two
> example programs ~ 250 lines each published side- by side. It was
> plain to see that C# appeared to be Microsoft's answer to Java.

C# and Java are very similar. I don't think MS ever made a secret
of that.

* similar basic procedural syntax
* similar type system
* similar OO
* similar generics (added later)
* similar FP (added later)
* similar memory management
* similar runtime environment
* similar class libraries

When converting a piece of code between them sometimes
half the work is the different conventions regarding
capitalization of member names and location of starting
curly bracket.

:-)

There are of course also some differences. C# got
unsafe blocks with pointers (nobody use them),
C# got unsigned integers, .NET generics is different
from Java generics for simple types / value types
etc..

Arne



More information about the Info-vax mailing list