c pointers are like USING if you had as many registers as you wanted.

The biggest problem I had with making the leap from assembler to C was the 
concept that 

char foo; declares a variable but char bar[n]; is an address, and the corollary 
that bar is not the same thing as bar[0]. In HLASM an array and its first 
element are the same thing.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Tony Thigpen
Sent: Wednesday, July 18, 2018 1:20 PM
To: [email protected]
Subject: Re: New Metal C standalone product for z/OS

c pointers are easily thought of as just automatic 'using' statements.

Tony Thigpen

Steve Thompson wrote on 07/18/2018 03:54 PM:
> * TYPEing
> 
> &LABEL   DC  0F,A(BUFF_LEN+7)  Get The Charles Constant...
> 
> The type of the LABEL is "F" not "A" and you got what you needed. yes?
> 
> This is typically done for certain "ASSIST" type macros that I've used 
> in the past where they check what the label is  (IF, DO, DOWHILE, 
> SELECT, etc.).
> 
> Meanwhile, I'm thinking a bit about c and learning it. I still remember 
> that c's pointers are about as obtuse as they get... But I'm told once 
> you get past that, c becomes easy.... :)

Reply via email to