473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Does C++ have sequence points ?

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
Jul 22 '05 #1
4 1642
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
Jul 22 '05 #2
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.
Jul 22 '05 #3

"Derrick Coetzee" <dc****@moonflare.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
Jul 22 '05 #4
Timothy Madden wrote:
"Derrick Coetzee" <dc****@moonflare.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.merkerk(at)dse.nl
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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...
3
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: ...
3
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.
53
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...
5
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 :...
8
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...
2
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
4
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...
7
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.