home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- From: raph@panache.demon.co.uk (Raphael mankin)
- Path: sparky!uunet!pipex!demon!panache.demon.co.uk!raph
- Subject: Re: applying or
- Distribution: world
- References: <1993Jan1.184655.7023@viewlogic.com>
- Organization: Solvfield Ltd.
- Reply-To: raph@panache.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 15
- Date: Mon, 4 Jan 1993 23:29:56 +0000
- Message-ID: <726190196snz@panache.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1993Jan1.184655.7023@viewlogic.com> josh@viewlogic.com writes:
-
- .. stuff deleted ...
- >optimizations that the short-circuit guarantee prevents! Would it be
- >legal for a C or Scheme compiler to avoid the short-circuiting if it
- >could prove there were no side effects involved, and if it looked like
- >a fruitful optimization?
- >--
- The language semantics are defined such that the OR and AND oeprators are
- sequential. Therefore, if you can *detect* that the order has been changed, the
- compiler may not change the order. If there is no way that you can detect the
- order of evaluation, then what the hell...
-
- --
- Raphael Mankin Nil taurus excretum
-