473,394 Members | 1,658 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,394 software developers and data experts.

My god, help on the standard reading

I have read many times and have tried to
find for it many times in c++ starndard,
but I didn't find what is that mean.

I think there is must somebody understand
it.

pointer to cvl void.

what does cvl mean here?

Thanks in advance!
Dec 17 '06 #1
5 1263

Bo Yang wrote:
I have read many times and have tried to
find for it many times in c++ starndard,
but I didn't find what is that mean.

I think there is must somebody understand
it.

pointer to cvl void.

what does cvl mean here?

Thanks in advance!
something to do with some combination of const / volatile, but the
details I don't know.

regards
Andy Little

Dec 17 '06 #2
kwikius wrote:
>
Bo Yang wrote:
>I have read many times and have tried to
find for it many times in c++ starndard,
but I didn't find what is that mean.

I think there is must somebody understand
it.

pointer to cvl void.

what does cvl mean here?

Thanks in advance!

something to do with some combination of const / volatile, but the
details I don't know.
I believe it may be explained somewhere in the text. Not having the exact
context makes it difficult to provide a specific interpretation. I can
say, however, that cv1 is probably a symbolic placeholder meaning something
like this:

struct CV {
CV(bool const_, bool volatile_):_const(const_), _volatile(volatile_){}
bool _const;
bool _volatile;
};
//these are just examples of possible values
CV cv1(true, false);
CV cv2(true, true);

Very few people realize that that Standard was not actually written in
English. There was a small island in the North Sea (now completely
inundated due to global warming and rising sea levels) between Denmark and
England. It was called Standardia, and the language the people spoke was
Standardese. This is the language of the Standard. Unfortunately, the
last person who truly understood Standardese died shortly before the
publication of the C++ Standard. Attempts have been made to translate the
Standard into English, but none have been fully successful.
--
NOUN:1. Money or property bequeathed to another by will. 2. Something handed
down from an ancestor or a predecessor or from the past: a legacy of
religious freedom. ETYMOLOGY: MidE legacie, office of a deputy, from OF,
from ML legatia, from L legare, to depute, bequeath. www.bartleby.com/61/
Dec 17 '06 #3
Bo Yang wrote:
>
pointer to cvl void.

what does cvl mean here?
Types can usually be modified with "const" or "volatile" or both. These
are referred to in the standard as "cv-qualifiers," so you see things
like "possibly cv-qualified type", meaning a type with or without const
and volatile.

In the more formal descriptions of type, like the one above, "cv" is
used to refer to those possible cv-qualifiers. When there's more than
one set of possible cv-qualifiers in a discussion, they get numbers,
like "cv1" here. So "pointer to cv1 void" means "pointer to
might-be-const might-be-volatile void".

--

-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (www.petebecker.com/tr1book)
Dec 17 '06 #4
Steven T. Hatton :
kwikius wrote:
>Bo Yang wrote:
>>I have read many times and have tried to
find for it many times in c++ starndard,
but I didn't find what is that mean.

I think there is must somebody understand
it.

pointer to cvl void.

what does cvl mean here?

Thanks in advance!
something to do with some combination of const / volatile, but the
details I don't know.

I believe it may be explained somewhere in the text. Not having the exact
context makes it difficult to provide a specific interpretation. I can
say, however, that cv1 is probably a symbolic placeholder meaning something
like this:

struct CV {
CV(bool const_, bool volatile_):_const(const_), _volatile(volatile_){}
bool _const;
bool _volatile;
};
//these are just examples of possible values
CV cv1(true, false);
CV cv2(true, true);

Very few people realize that that Standard was not actually written in
English. There was a small island in the North Sea (now completely
inundated due to global warming and rising sea levels) between Denmark and
England. It was called Standardia, and the language the people spoke was
Standardese. This is the language of the Standard. Unfortunately, the
last person who truly understood Standardese died shortly before the
publication of the C++ Standard. Attempts have been made to translate the
Standard into English, but none have been fully successful.
Oh, god!
Dec 17 '06 #5

Steven T. Hatton wrote:
Very few people realize that that Standard was not actually written in
English. There was a small island in the North Sea (now completely
inundated due to global warming and rising sea levels) between Denmark and
England. It was called Standardia, and the language the people spoke was
Standardese. This is the language of the Standard. Unfortunately, the
last person who truly understood Standardese died shortly before the
publication of the C++ Standard.
I have heard a rumour, just a rumour mind that an even more mysterious
and epic version of the ancient text has been found and is even now
being transcribed in great secrecy somewhere in the dark reaches of
academia.

regards
Andy Little

Dec 17 '06 #6

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

Similar topics

6
by: Hung ho | last post by:
Hi. I just finished reading an introductory Python book called "Python Programming for the absolute beginner" by Michael Dawson. I found it very interesting, and easy to follow. Python does really...
3
by: Olivier Maurice | last post by:
Hi all, I suppose some of you know the program Redmon (type redmon in google, first result). This neat little tool allows to hook up any functionality to a printer by putting the file printed...
8
by: Eric Lilja | last post by:
Hello, I had what I thought was normal text-file and I needed to locate a string matching a certain pattern in that file and, if found, replace that string. I thought this would be simple but I had...
43
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own...
2
by: Brian | last post by:
I'm running a dos program via System.Diagnostics.Process. The dos program is very picky about filenames and such, and so I want to show the output to the user so they can verify it did what it...
56
by: Chris Hills | last post by:
Hi, It came up in a standards panel meeting the other day that "all c or C++ programmers" have a copy of ISO C and/or C++ ... I challenged this and said most don't (outside those working on...
16
by: Spiros Bousbouras | last post by:
There are several compilers which accept various extensions to the C language and produce native code. But I wonder if there are any which offer the option to translate from C with some extensions...
7
by: Bo Yang | last post by:
Hi, I am now reading the C++ standard, and have some troubles. What is unqualified name and what is qualified name? I found the standard is too hard for non-english programmer!
3
by: Joakim Hove | last post by:
Hello, I am reading a filename from the user - the loop is typically like this: 1. Read a directory from the user. 2. Read several filenames from the user. The filenames read in 2. above...
270
by: jacob navia | last post by:
In my "Happy Christmas" message, I proposed a function to read a file into a RAM buffer and return that buffer or NULL if the file doesn't exist or some other error is found. It is interesting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.