Yeah, so maybe it wasn't a C compiler that I bought.  It's been a long time; 
I'm not sure any longer.  And I'm pretty sure that at the time I didn't 
comprehend what OO programming was about.  The descriptions I read, and the 
examples, didn't seem all that different to me; what's the big deal?, I 
wondered.

But when trying to program in VBA/Excel I kept running into the message "does 
not support this property or method", which drove me crazy since I'd JUST USED 
IT OVERE HERE!  I didn't understand the difference between a general function 
and the method of an object, you see.  It wasn't until I followed a VBA 
programmer's advice and tried writing my own class, even though I didn't 
particularly need one at the moment, that it suddenly became clear.  I've been 
a fan ever since.

C++ has nothing to do with C?  That's weird.

---
Bob Bridges, [email protected], cell 336 382-7313

/* Seek simplicity, and distrust it.  -Alfred Whitehead */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Bernd Oppolzer
Sent: Wednesday, January 5, 2022 13:44

C is a very simple language, and you need almost no verbose code to get 
started. (Same as Pascal, BTW).
See the very simple "Hello world" example programs, which only take one line of 
source code, like this:

int main (void); { printf ("hello world\n"); }

Ok ... you should probably add some standard headers like

#include <stdio.h>
#include <stdlib.h>

(which contain the definition of printf etc.), but that's it.

Don't mix up C with C++, which is a complete different language

C has nothing to do with OO ... C++ is the OO language.
C is a language for systems programming or embedded systems, only sometimes 
used for commercial or math applications.

The C socket interface is very low level, but easy to use and easy to 
understand.

--- Am 05.01.2022 um 18:56 schrieb Bob Bridges:
> I guess you're saying below that socket calls are built into the C language, 
> or more likely are part of a standard library of C functions.  I once bought 
> a C compiler, but was dismayed by the amount of code that has to go into 
> every program just to get started.  (I'm prejudiced by the simplicity of REXX 
> and PL/1, and dislike all the verbiage that's necessary even to start a COBOL 
> program.)  So I dropped the matter and never got further.  No doubt I'll get 
> back to C eventually.
>
> Meanwhile, is there a OO class (for example) that can interact with 
> object-oriented languages such as VBS, Jscript, ooREXX etc?  Or is it time 
> for me to buy a C compiler (again).  Or maybe VB Studio, or whatever it's 
> called?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to