Hello
I've read a long time ago in the MSDN that C++ language defines no sequence
points
Now I read in the 1998 ISO standard a small list of sequence points in C++
Does C++ defines sequence points ? It really should if anyone asks me ...
Thank you
Timothy Madden
Romania
-----------------------------------------
And I don't wanna miss a thing 4 1669
Timothy Madden wrote: I've read a long time ago in the MSDN that C++ language defines no sequence points Now I read in the 1998 ISO standard a small list of sequence points in C++
Does C++ defines sequence points ? It really should if anyone asks me ...
If you are reading the 1998 Standard (for C++ language, I presume), why
are you asking _us_ whether C++ defines sequence points? It's spelled
out for you in the Standard. How else would we tell you except by looking
in the Standard?
V
Timothy Madden wrote: I've read a long time ago in the MSDN that C++ language defines no sequence points Now I read in the 1998 ISO standard a small list of sequence points in C++ Does C++ defines sequence points ? It really should if anyone asks me ...
As always, MSDN and other documentation merely seek to *describe* the
language, and may be wrong; they carry no authority whatsoever. The
standard *defines* the language, and so is always right, by definition.
Even if it says something that seems wrong, that's just the way it is
(some people refer to these as "bugs" in the standard.)
--
Derrick Coetzee
I grant this newsgroup posting into the public domain. I disclaim all
express or implied warranty and all liability. I am not a professional.
"Derrick Coetzee" <dc****@moonfla re.com> wrote in message
news:ci******** **@news-int2.gatech.edu ... Timothy Madden wrote: I've read a long time ago in the MSDN that C++ language defines no
sequence points Now I read in the 1998 ISO standard a small list of sequence points in
C++ Does C++ defines sequence points ? It really should if anyone asks me
.... As always, MSDN and other documentation merely seek to *describe* the language, and may be wrong; they carry no authority whatsoever. The standard *defines* the language, and so is always right, by definition. Even if it says something that seems wrong, that's just the way it is (some people refer to these as "bugs" in the standard.)
Sorry but this is theory.
I had the enough bad luck to see the reverse in practice. Once I wrote web
pages
in HTML/CSS. Ask any web designer who makes the CSS standard:
Internet Explorer or the World Wide Web Consortium ?
Timothy Madden
Romania
----------------------------------
And I don't wanna miss a thing
Timothy Madden wrote: "Derrick Coetzee" <dc****@moonfla re.com> wrote in message news:ci******** **@news-int2.gatech.edu ...
Timothy Madden wrote:
I've read a long time ago in the MSDN that C++ language defines no sequence points Now I read in the 1998 ISO standard a small list of sequence points in C++ Does C++ defines sequence points ? It really should if anyone asks me
...
As always, MSDN and other documentation merely seek to *describe* the language, and may be wrong; they carry no authority whatsoever. The standard *defines* the language, and so is always right, by definition. Even if it says something that seems wrong, that's just the way it is (some people refer to these as "bugs" in the standard.)
Sorry but this is theory. I had the enough bad luck to see the reverse in practice. Once I wrote web pages in HTML/CSS. Ask any web designer who makes the CSS standard: Internet Explorer or the World Wide Web Consortium ?
In that case: is your question about the C++ language (theory) or about
your compiler (practice). If it is about your compiler this is not the
best place to ask this question.
--
Peter van Merkerk
peter.van.merke rk(at)dse.nl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave Theese |
last post by:
Hello all,
I have read the definition of a sequence point in the standard and can
follow it mechanically, but for some reason, I'm having a hard time grasping
the conceptual meaning and significance. Can someone out there offer good
intuition on sequence points???
Thank you!
Dave
|
by: Sensorflo |
last post by:
After browsing though many newsgroups articels I'm still not shure how
operator precedence, operator associativity, sequence points, side
effects go together. Currently I have the following view:
An expression
a = b() + c() * d++;
can be transformed with the rules of operator associativity and
operator precedence into a tree
|
by: sugaray |
last post by:
Can somebody explain to me what is sequence point ?
With few examples would be even better. Thanx for your help.
|
by: Deniz Bahar |
last post by:
I know the basic definition of a sequence point (point where all side
effects guaranteed to be finished), but I am confused about this
statement:
"Between the previous and next sequence point an object shall have its
stored value modified at most once by the evaluation of an expression.
Furthermore, the prior value shall be accessed only to determine the
value to be stored."
Can someone give me examples of expressions that "barely"...
|
by: Tarun |
last post by:
Hi All,
I have written the following prog.
int main()
{
int val = 4;
printf("size of val = %d, val = %d",sizeof(++val),val);
}
output: size of val = 2, val = 4
The output expected was : size of val = 2, val = 5
| |
by: Will Chamberlain |
last post by:
I came across a rather interesting article this morning and thought I'd
share. We all know that Visual Studio is a great IDE, but I think we can
all agree that it is adds a dramatic change to how we write code.
I'm not posting to talk trash or start a flamewar, just wanting feedback
in regards to the following article. I happen to use Visual Studio on a
daily basis and am not a John Rivers alter-ego.
...
|
by: ais523 |
last post by:
The program excerpt
int i;
char c;
char* a= {"abc","def","ghi"};
/* ... */
i=0;
c=a;
obviously invokes undefined behaviour, because i is modified twice
|
by: Daniel Kraft |
last post by:
Hi all!
I do not have a standard-document right next to me to cite from, but as
far as I know, doing something like:
a()=b()=c()=d();
or
foo(d()+c()+b()+a());
has a fixed evaluation order (right-to-left in the first case and
|
by: Jrdman |
last post by:
hi
According to the standard these are how we define sequence points:
*the call to a function ,after the arguments have been evaluated
*the end of the first operand of the following operators :
{logical AND :&&
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |