From: Xavier Bestel <xavier.bestel@free.fr>
To: "Kevin P. Fleming" <kpfleming@backtobasicsmgmt.com>
Cc: Andi Kleen <ak@muc.de>, Geert Uytterhoeven <geert@linux-m68k.org>,
linux-kernel@vger.kernel.org
Subject: Re: {put,get}_user() side effects
Date: Tue, 06 Apr 2004 17:47:14 +0200 [thread overview]
Message-ID: <1081266434.8318.12.camel@speedy.priv.grenoble.com> (raw)
In-Reply-To: <4072CD22.4010603@backtobasicsmgmt.com>
On Tue, 2004-04-06 at 08:30 -0700, Kevin P. Fleming wrote:
> Xavier Bestel wrote:
>
> > Sorry, I read too fast. I didn't know sizeof could avoid side effects.
> >
>
> Both typeof and sizeof are compile-time constructs, so there is no
> opportunity for any expression side effects to occur. Presumably one
> could do:
>
> typeof(1/0UL)
>
> without ever causing the obvious side effect either (granted, this is a
> pointless piece of code :-)).
Yeah, now that you tell it, it seems obvious when you consider macros
like min/max and friends which rely on typeof to avoid side-effects.
next prev parent reply other threads:[~2004-04-06 15:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1HVGV-1Wl-21@gated-at.bofh.it>
2004-04-06 11:32 ` Andi Kleen
2004-04-06 11:46 ` Geert Uytterhoeven
2004-04-06 20:53 ` Horst von Brand
2004-04-06 22:53 ` Andreas Schwab
2004-04-06 11:50 ` Xavier Bestel
2004-04-06 12:17 ` Wichert Akkerman
2004-04-06 14:28 ` Xavier Bestel
2004-04-06 15:30 ` Kevin P. Fleming
2004-04-06 15:47 ` Xavier Bestel [this message]
2004-04-06 10:03 Geert Uytterhoeven
2004-04-06 10:10 ` Russell King
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=1081266434.8318.12.camel@speedy.priv.grenoble.com \
--to=xavier.bestel@free.fr \
--cc=ak@muc.de \
--cc=geert@linux-m68k.org \
--cc=kpfleming@backtobasicsmgmt.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®