Never seen this before ... | | |
What does the second const in the member function prototype below
dprotect? I believe the first const prevents the reference returned
from being modified and the third prevents the member function from
modifying the object that invokes it. The compiler accepts the
statement below, so what does the second const protect?
const string const &getPartNumber()const;
Cheers,
Bob | | | | re: Never seen this before ...
blangela wrote: Quote:
What does the second const in the member function prototype below
dprotect? I believe the first const prevents the reference returned
from being modified and the third prevents the member function from
modifying the object that invokes it. The compiler accepts the
statement below, so what does the second const protect?
>
const string const &getPartNumber()const;
>
It's a syntax error.
--
Ian Collins. | | | | re: Never seen this before ...
On Apr 14, 6:31*pm, Ian Collins <ian-n...@hotmail.comwrote: Quote:
blangela wrote: Quote:
What does the second const in the member function prototype below
dprotect? I believe the first const prevents the reference returned
from being modified and the third prevents the member function from
modifying the object that invokes it. *The compiler accepts the
statement below, so what does the second const protect?
> Quote:
const string const &getPartNumber()const;
>
It's a syntax error.
>
--
Ian Collins.
Then why does it compile without errors (there may be warnings - I
will have to check).
Bob | | | | re: Never seen this before ...
blangela wrote: Quote:
On Apr 14, 6:31 pm, Ian Collins <ian-n...@hotmail.comwrote: Quote:
>blangela wrote: Quote:
>>What does the second const in the member function prototype below
>>dprotect? I believe the first const prevents the reference returned
>>from being modified and the third prevents the member function from
>>modifying the object that invokes it. The compiler accepts the
>>statement below, so what does the second const protect?
>>const string const &getPartNumber()const;
>It's a syntax error.
>>
*Please* don't quote signatures. Quote:
>
Then why does it compile without errors (there may be warnings - I
will have to check).
>
#include <string>
struct X
{
const std::string const &getPartNumber()const;
};
CC z.cc
"z.cc", line 5: Error: "const" has already been included in this
declaration.
g++ /tmp/z.cc
/tmp/z.cc:5: error: duplicate `const'
--
Ian Collins. | | | | re: Never seen this before ...
On Apr 14, 6:52*pm, Ian Collins <ian-n...@hotmail.comwrote: Quote:
blangela wrote: Quote:
On Apr 14, 6:31 pm, Ian Collins <ian-n...@hotmail.comwrote: Quote:
blangela wrote:
>What does the second const in the member function prototype below
>dprotect? I believe the first const prevents the reference returned
>from being modified and the third prevents the member function from
>modifying the object that invokes it. *The compiler accepts the
>statement below, so what does the second const protect?
>const string const &getPartNumber()const;
It's a syntax error.
>
*Please* don't quote signatures.
> Quote:
Then why does it compile without errors (there may be warnings - I
will have to check).
>
#include <string>
>
struct X
{
* const std::string const &getPartNumber()const;
>
};
>
CC z.cc
"z.cc", line 5: Error: "const" has already been included in this
declaration.
>
g++ /tmp/z.cc
/tmp/z.cc:5: error: duplicate `const'
>
--
Ian Collins.
With my Microsoft VS 2008 Express C++ compiler I get:
"warning C4114: same type qualifier used more than once"
I should have looked closer at the warning messages before posting my
question. | | | | re: Never seen this before ...
Ian Collins <ian-news@hotmail.comwrote in news:66ig2iF2kg6m6U28
@mid.individual.net: Quote:
*Please* don't quote signatures.
Annoying, huh? Of course, one solution is to not attach the superfluous
bandwidth wasting signature in the first place, since your name already
appears in the header and, in this case, the attribution. How many times
do you need to see your name in lights when you post? | | | | re: Never seen this before ...
On Apr 15, 7:36*am, Michael DOUBEZ <michael.dou...@free.frwrote: Quote:
I don't see the problem, Netiquette doesn't forbid signatures (4 lines
is the line).
A rather arbitrary rule. Quote:
But, trimming a text correctly before sending it is part of the good
usage of USENET.
Whatever. 1 in 1000 posts may exhibit this "problem", while 995
contain sigs in the first place, because some arbitrary "netiquette"
guideline says it's OK to waste four lines per post. | | | | re: Never seen this before ...
On Apr 15, 10:17*am, Michael DOUBEZ <michael.dou...@free.frwrote: Quote:
The culture says so. If you are not happy, make a proposal to change a
30 year old practice.
Make a proposal to whom? Who owns Usenet and creates and enforces
these guidelines? Who decides what they are? | | | | re: Never seen this before ... lbonafide@yahoo.com wrote: Quote:
Make a proposal to whom? Who owns Usenet and creates and enforces
these guidelines? Who decides what they are?
Those who do not listen to your prattling. | | | | re: Never seen this before ...
Michael DOUBEZ wrote: Quote:
I don't see the problem, Netiquette doesn't forbid signatures (4
lines is the line). All the most when it is preceded by two dash and
a blank that indicate to the newsreader to cut off the signature.
>
But, trimming a text correctly before sending it is part of the good
usage of USENET.
The problem occurs mainly (but not exclusively) in posts from Google
Groups. In yet another of it's less than perfect aspects, it doesn't
automatically trim .sigs, the way most newsreaders will.
Brian | | | | re: Never seen this before ...
On Apr 15, 11:32*am, Matthias Buelow <m...@incubus.dewrote: Quote:
lbonaf...@yahoo.com wrote: Quote:
Make a proposal to whom? *Who owns Usenet and creates and enforces
these guidelines? *Who decides what they are?
>
Those who do not listen to your prattling.
Why the personal attack? I researched posting guidelines and found
nothing written about quoting signatures, nor any authority by those
who wrote them.
And by the way, I follow the guidelines and indeed said that it is
annoying when people quote sigs, I just find it odd that one thinks
sigs themselves are OK because "it is written".
Written by someone nobody can identify, apparently. | | | | re: Never seen this before ... lbonafide@yahoo.com wrote: Quote:
On Apr 15, 11:32 am, Matthias Buelow <m...@incubus.dewrote: Quote:
lbonaf...@yahoo.com wrote: Quote:
Make a proposal to whom? Who owns Usenet and creates and enforces
these guidelines? Who decides what they are?
Those who do not listen to your prattling.
>
Why the personal attack? I researched posting guidelines and found
nothing written about quoting signatures, nor any authority by those
who wrote them.
>
And by the way, I follow the guidelines and indeed said that it is
annoying when people quote sigs, I just find it odd that one thinks
sigs themselves are OK because "it is written".
>
Written by someone nobody can identify, apparently.
The Network Working Group for the most part, codified through the RFCs.
You couldn't have done much "research" if you failed to discover that.
Brian | | | | re: Never seen this before ...
"Default User" <defaultuserbr@yahoo.comwrote in
news:66kd0vF2kd745U1@mid.individual.net: Quote: lbonafide@yahoo.com wrote:
> Quote:
>And by the way, I follow the guidelines and indeed said that it is
>annoying when people quote sigs, I just find it odd that one thinks
>sigs themselves are OK because "it is written".
>>
>Written by someone nobody can identify, apparently.
>
The Network Working Group for the most part, codified through the
RFCs. You couldn't have done much "research" if you failed to discover
that.
Sorry, this really isn't important enough to explore that deeply, so
maybe "research" was a bad choice of words.
OK, so I found it here, written in 1995 by one S. Hambridge of Intel: http://www.faqs.org/rfcs/rfc1855.html
"This document provides a minimum set of guidelines for Network
Etiquette (Netiquette) which organizations may take and adapt for
their own use."
Sorry, seems pretty arbitrary and definitely optional. | | | | re: Never seen this before ...
Lloyd Bonafide wrote: Quote:
Ian Collins <ian-news@hotmail.comwrote in news:66ig2iF2kg6m6U28
@mid.individual.net:
> Quote:
>*Please* don't quote signatures.
>
Annoying, huh? Of course, one solution is to not attach the superfluous
bandwidth wasting signature in the first place, since your name already
appears in the header and, in this case, the attribution. How many times
do you need to see your name in lights when you post?
If I signed my posting in the body of the message, everyone would have
to trim it. The point of signatures and the signature delimiter is
proper news readers snip them and format them correctly.
This worked fine until google came along and decided to ignore Usenet
convention. Not only does their abomination of an interface not snip
signatures, it thwarts attempts by its unfortunate users to include a
correctly formatted one.
--
Ian Collins. | | | | re: Never seen this before ...
On 15 avr, 23:46, Lloyd Bonafide <nos...@nicetry.orgwrote: Quote:
"Default User" <defaultuse...@yahoo.comwrote
innews:66kd0vF2kd745U1@mid.individual.net:
Quote: Quote:
lbonaf...@yahoo.com wrote:
Quote: Quote: Quote:
And by the way, I follow the guidelines and indeed said that it is
annoying when people quote sigs, I just find it odd that one thinks
sigs themselves are OK because "it is written".
Quote: Quote: Quote:
Written by someone nobody can identify, apparently.
Quote: Quote:
The Network Working Group for the most part, codified through the
RFCs. You couldn't have done much "research" if you failed to discover
that.
Quote:
Sorry, this really isn't important enough to explore that deeply, so
maybe "research" was a bad choice of words.
Quote:
OK, so I found it here, written in 1995 by one S. Hambridge of Intel:
Quote:
"This document provides a minimum set of guidelines for Network
Etiquette (Netiquette) which organizations may take and adapt for
their own use."
Quote:
Sorry, seems pretty arbitrary and definitely optional.
An RFC, and you say "definitely optional"? Despite the name
(Request For Comments), RFC's are the official standards for the
net.
For the record, it's generally considered desirable that all
pertinent information be found in the body of the posting, and
that you don't have to look in the headers to find additional
information. It was also considered desirable that people could
identify them as people in email and postings, with their real
names (and addresses, and phone numbers, if they wanted), and
not just their login ids. This motivated the original creation
of the signature. When (some) people started abusing (with
signatures of over a hundred lines at times, complete with ASCII
art), the people responsible for the net decided to draw a line.
The exact value is 4 lines; more is formally considered abuse.
In practice, however, if you happen to have five, I don't think
there'd be much complaint (except that a good newsreader or
email client won't send the message).
Similarly, other standard practices evolved. They don't have
the force of law, but they are respected by civilized net
citizens.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34 | | | | re: Never seen this before ...
On 15 avr, 18:44, "Default User" <defaultuse...@yahoo.comwrote: Quote:
Michael DOUBEZ wrote: Quote:
I don't see the problem, Netiquette doesn't forbid signatures (4
lines is the line). All the most when it is preceded by two dash and
a blank that indicate to the newsreader to cut off the signature.
Quote: Quote:
But, trimming a text correctly before sending it is part of the good
usage of USENET.
Quote:
The problem occurs mainly (but not exclusively) in posts from Google
Groups. In yet another of it's less than perfect aspects, it doesn't
automatically trim .sigs, the way most newsreaders will.
The problem was present long before Google groups---I don't
think Outlook Explorer trims sigs either (or at least, it didn't
at one time).
But that's really shoving off the blame. For various reasons, I
post through Google groups, but you won't find quoted signatures
in my postings (unless I slip up). Google groups does have a
lot of problems, but this one is easy to avoid. (Note that if
you're a responsible poster, you'll be trimming anyway. Whether
the sig is there or not really doesn't make much difference.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34 | | | | re: Never seen this before ...
James Kanze wrote: Quote:
>
But that's really shoving off the blame. For various reasons, I
post through Google groups, but you won't find quoted signatures
in my postings (unless I slip up). Google groups does have a
lot of problems, but this one is easy to avoid. (Note that if
you're a responsible poster, you'll be trimming anyway. Whether
the sig is there or not really doesn't make much difference.)
>
But should you knowingly post a broken signature?
--
Ian Collins. | | | | re: Never seen this before ...
James Kanze wrote: Quote:
On 15 avr, 18:44, "Default User" <defaultuse...@yahoo.comwrote: Quote:
Michael DOUBEZ wrote: Quote:
I don't see the problem, Netiquette doesn't forbid signatures (4
lines is the line). All the most when it is preceded by two dash
and a blank that indicate to the newsreader to cut off the
signature.
> Quote: Quote:
But, trimming a text correctly before sending it is part of the
good usage of USENET.
> Quote:
The problem occurs mainly (but not exclusively) in posts from Google
Groups. In yet another of it's less than perfect aspects, it doesn't
automatically trim .sigs, the way most newsreaders will.
>
The problem was present long before Google groups---I don't
think Outlook Explorer trims sigs either (or at least, it didn't
at one time).
>
But that's really shoving off the blame. For various reasons, I
post through Google groups, but you won't find quoted signatures
in my postings (unless I slip up).
I didn't state, and didn't intend to imply, that all GG posters do so.
I'm also aware that not all newsreaders auto-trim. However, if you do
count, I'll think you find that the overwhelming majority of posted
..sigs comes from GG users. That's why I said, "mainly (but not
exclusively)".
Brian | | | | re: Never seen this before ...
On Tue, 15 Apr 2008 09:50:05 -0700 (PDT), lbonafide@yahoo.com wrote: Quote:
>I researched posting guidelines and found
>nothing written about quoting signatures, nor any authority by those
>who wrote them.
"researched posting guidelines" HA HA!
There is no such thing as "posting guidelines" or "authority." You
post whatever you want, and quote whatever you want. If you are a bad
poster and make your post hard to read and follow, you are hurting
yourself only. People will skim and ignore the post. That's all there
is to this. There is no other guidelines and authorities.
Anyway, what does this discussion has to do with C++? Shame on you.
You are off-topic. Read the FAQ. | | | | re: Never seen this before ...
James Kanze <james.kanze@gmail.comwrote in news:b75988c3-f457-4369- bb9e-5157aa7f3a05@f36g2000hsa.googlegroups.com: Quote:
An RFC, and you say "definitely optional"? Despite the name
(Request For Comments), RFC's are the official standards for the
net.
Really? Then why does this one begin with this:
Status of This Memo
This memo provides information for the Internet community. This memo
does not specify an Internet standard of any kind. Distribution of
this memo is unlimited.
Abstract
This document provides a minimum set of guidelines for Network
Etiquette (Netiquette) which organizations may take and adapt for
their own use. | | | | re: Never seen this before ...
On Apr 16, 4:32 am, Lloyd Bonafide <nos...@nicetry.orgwrote: Quote:
James Kanze <james.ka...@gmail.comwrote in news:b75988c3-f457-4369-
bb9e-5157aa7f3...@f36g2000hsa.googlegroups.com:
Quote: Quote:
An RFC, and you say "definitely optional"? Despite the name
(Request For Comments), RFC's are the official standards for the
net.
Quote:
Really? Then why does this one begin with this:
Quote:
Status of This Memo
Quote:
This memo provides information for the Internet community. This memo
does not specify an Internet standard of any kind. Distribution of
this memo is unlimited.
Because it doesn't place any formal constraints on software
connecting to the net. Quote:
This document provides a minimum set of guidelines for Network
Etiquette (Netiquette) which organizations may take and adapt for
their own use.
Exactly. It's *minimum* set of guidelines. Organizations may
place stricter restrictions. And of course, because it's the
Internet, you won't go to jail for violating them.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34 | | | | re: Never seen this before ...
Michael DOUBEZ <michael.doubez@free.frwrote in
news:4805af5c$0$8104$426a34cc@news.free.fr: Quote:
Of course it is not a standard but IPv4, IPv6, TCP, UDP, HTTP, FTP ...
Most of Internet, network and serial communication protocols have been
standardized through the RFC. And not all RFC are standards, some are
drafts ... You might want to have a deeper look before drawing
conclusion.
>
Only the most perverted mind would want to standardize behavior. It is
stated as guidelines. Those are rules commonly accepted (like a chart)
but there is no authority to enforce them except the community. The
rules are here to regulate the communication such that the information
rate stays acceptable. Trolls are known to use 100 or more lines in
their signature.
I don't disagree with what you say, and in fact it reinforces my
original complaint - that .sigs were somehow kosher, but quoting them is
not because of some non-binding text called an RFC, which in the case of
posting guidelines, is an abbreviation for "somebody's opinion".
On one hand, you guys say suggest that RFCs are mere suggestions, on the
other they seem to hold some authority. Frankly, it smacks of
religion. | | | | re: Never seen this before ...
In article <Xns9A8246784DBE5lbonafideyahoocom@194.177.96.26 >, nospam@nicetry.org says...
[ ... ] Quote:
On one hand, you guys say suggest that RFCs are mere suggestions, on the
other they seem to hold some authority. Frankly, it smacks of
religion.
Hardly. The simple fact is that some RFCs are "standards track" and
really do hold some authority. Other RFCs are not, and have less
authority.
Realistically, IETF in its entirety has very little in the way of real
authority. Almost all RFCs are really just guidelines that allow people
to get things to work together.
In some cases, failing to follow them will result in things not working
at all -- e.g. it's an RFC that says what port your DNS client should
use to talk to a DNS server. If you write a client that tries to use a
different port number, it's almost certain that it will not work with
any RFC-compliant DNS server.
In other cases, the system is sufficiently resilient to keep working to
some degree even when the RFC is ignored. This case is a bit like that:
quoting .sig's is asinine wasteful and stupid, but isn't quite bad
enough to completely stop the system from working at all.
--
Later,
Jerry.
The universe is a figment of its own imagination. | | | | re: Never seen this before ...
On Apr 16, 9:10*am, Jerry Coffin <jcof...@taeus.comwrote: Quote:
quoting .sig's is asinine wasteful and stupid,
And including .sigs is virtuous because some guy said they were in an
RFC? "Later, Jerry" is somehow not wasteful on every single post you
make?
Anyway, hold onto your dogma. I'm not trying to take it way, just
pointing out the hypocrisy. | | | | re: Never seen this before ... lbonafide@yahoo.com wrote: Quote:
Anyway, hold onto your dogma. I'm not trying to take it way, just
pointing out the hypocrisy.
About enough of this troll.
*plonk*
Brian | | | | re: Never seen this before ...
In article <1d0eccf5-0cdc-4458-a40f- dbdd1929c23f@b1g2000hsg.googlegroups.com>, lbonafide@yahoo.com says... Quote:
On Apr 16, 9:10Â*am, Jerry Coffin <jcof...@taeus.comwrote: Quote:
quoting .sig's is asinine wasteful and stupid,
And including .sigs is virtuous because some guy said they were in an
RFC?
No -- limiting them is virtuous. Quote:
"Later, Jerry" is somehow not wasteful on every single post you
make?
IMO, no. Signing what you do (electronically or otherwise) isn't
wasteful at all. Quote:
Anyway, hold onto your dogma. I'm not trying to take it way, just
pointing out the hypocrisy.
You can try, and it's unlikely that anybody will stop you. OTOH, the
newsgroup does have a topic, and spending all your time being asinine
will only get you plonked. The result is obvious and nearly inevitable:
when/if you do have something to say or ask that's topical, nobody will
listen or reply.
--
Later,
Jerry.
The universe is a figment of its own imagination. | | | | re: Never seen this before ...
On Apr 15, 2:54*pm, Ian Collins <ian-n...@hotmail.comwrote: Quote:
Lloyd Bonafide wrote: Quote:
Ian Collins <ian-n...@hotmail.comwrote in news:66ig2iF2kg6m6U28
@mid.individual.net:
> Quote: Quote:
*Please* don't quote signatures.
> Quote:
Annoying, huh? *Of course, one solution is to not attach the superfluous
bandwidth wasting signature in the first place, since your name already
appears in the header and, in this case, the attribution. *How many times
do you need to see your name in lights when you post? *
>
If I signed my posting in the body of the message, everyone would have
to trim it. *The point of signatures and the signature delimiter is
proper news readers snip them and format them correctly.
>
This worked fine until google came along and decided to ignore Usenet
convention. *Not only does their abomination of an interface not snip
signatures, it thwarts attempts by its unfortunate users to include a
correctly formatted one.
>
I did not mean to make such a fuss!!!
Only looked back at this thread now that I started several days ago
was quite amazed. I actually though the high number of replies were
discussing how Microsoft handles the syntax error. Foolish me.
I do use google as my usenet browser, so I guess this is why it
happened (my bad ediquette).
When I created this reply, I deleted the last 2 quoted lines that
included Ian's name. Is that what I was supposed to have done in the
first place? I will try to remember to do so in the future.
Again, sorry to have unintentionally created such a fuss.
Bob | | | | re: Never seen this before ...
On 16 Apr, 13:29, Michael DOUBEZ <michael.dou...@free.frwrote: Quote: Quote:
On one hand, you guys say suggest that RFCs are mere suggestions, on the
other they seem to hold some authority. * Frankly, it smacks of
religion.
>
I don't know what 'smack' means (smell?).
pretty good guess! I'm a native english speaker and I knew what is
meant
but for a precise definition I had to look it up.
Smack \Smack\, n. [OE. smak, AS. ssm?c taste, savor; akin to D.
smaak, G. geschmack, OHG. smac; cf. Lith. smagus pleasant.
Cf. Smack, v. i.]
1. Taste or flavor, esp. a slight taste or flavor; savor;
tincture; as, a smack of bitter in the medicine. Also used
figuratively.
[1913 Webster]
--
Nick Keighley |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,439 network members.
|