A variable declaration. They can come anywhere (more or less) in C++, not just at the start of a block. I guess David should have written "I once wrote some C++ code that sets ..." The slash-slash comments might have been a giveaway, but some C compilers do have an option to allow those.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Sunday, August 18, 2019 10:56 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Local time in C on z/OS On Sun, 18 Aug 2019 10:17:49 -0700, Charles Mills wrote: > >It is a type declaration. Uint64_t is a type of integer, like long or short. >Picture int mins = whatever; > You mean a variable declaration with initialization? I'd not expect that in the middle of executable code. Or a type definition such as?: typedef enum{ False, True } Boolean; On Sun, 18 Aug 2019 15:08:25 +0800, David Crayford wrote:= > ... > tz_offset_hours = ldto / STCK_UNIT_HOUR; /* Assignment; executable. > [gil] */ > // if minutes have been specified then calculate them > uint64_t mins = ldto % STCK_UNIT_HOUR; /* Declaration?? WTF!? [gil] > */ > ... Clearly, I'm still confused. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN