From: krewat@kilonet.net (Arthur Krewat)
Subject: [TUHS] C question for the historians
Date: Wed, 8 Nov 2017 20:49:43 -0500 [thread overview]
Message-ID: <0ace6d7d-24c4-d4f5-f872-0cef020f4dad@kilonet.net> (raw)
In-Reply-To: <e6fafaac-7b27-601a-c105-d5286668fa00@case.edu>
On 11/8/2017 8:41 PM, Chet Ramey wrote:
> (There's also the annoying warning on `if (x = something)'; maybe that's
> what I was thinking.)
Which Visual Studio 2013 doesn't warn about in it's default state. I
know it doesn't through personal experience (insert ashamed look-away
emoticon here).
Truth be told, there is some utility in the "if (x = something) ..." -
always set x, but also conditionally do something when it's not 0. But
it's also a dumb mistake. Yeah, I'm dumb.
art k.
next prev parent reply other threads:[~2017-11-09 1:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 16:17 Arthur Krewat
2017-11-08 16:27 ` Warner Losh
2017-11-09 10:17 ` Michael Kjörling
2017-11-08 18:14 ` Ralph Corderoy
2017-11-08 18:34 ` Arthur Krewat
2017-11-08 19:05 ` Larry McVoy
2017-11-08 20:13 ` ron minnich
2017-11-08 20:23 ` Larry McVoy
2017-11-08 20:32 ` Ron Natalie
2017-11-08 20:39 ` Warner Losh
2017-11-08 20:41 ` Chet Ramey
2017-11-09 1:22 ` Ralph Corderoy
2017-11-09 1:41 ` Chet Ramey
2017-11-09 1:49 ` Arthur Krewat [this message]
2017-11-08 20:43 ` Bakul Shah
2017-11-08 20:55 ` Steve Nickolas
2017-11-08 20:36 ` Warner Losh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0ace6d7d-24c4-d4f5-f872-0cef020f4dad@kilonet.net \
--to=krewat@kilonet.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).