By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,851 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,851 IT Pros & Developers. It's quick & easy.

Is ':' an operator?

P: n/a
Hello All,

I have never ever thought about this, till recently I cam across a
book (COM/DCOM Primer)
where ':' is referred to as the scope resolution operator used in the
following context:

class Derived : public Base {
....

Now, '::' is what I know of as the scope resolution operator. This
leads me to ask:
[1] Is ':' at all an operator when used in the above context,
[2] If so, does it have a proper name such as colon operator?
[3] Is it correct to refer to it as the scope resolution opeator?
[4] What does the standard say?

Regards,
Suman

Mar 21 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Mar 21, 12:58 am, "Suman" <skar...@gmail.comwrote:
Hello All,

I have never ever thought about this, till recently I cam across a
book (COM/DCOM Primer)
where ':' is referred to as the scope resolution operator used in the
following context:

class Derived : public Base {
...

Now, '::' is what I know of as the scope resolution operator. This
leads me to ask:
[1] Is ':' at all an operator when used in the above context,
[2] If so, does it have a proper name such as colon operator?
[3] Is it correct to refer to it as the scope resolution opeator?
[4] What does the standard say?

"::" is the scope resolution operator. The colon in question is just
part of the syntax of the base-clause, it has no specific name that
I'm aware of.

Mar 21 '07 #2

P: n/a
ro***********@yahoo.com wrote:
On Mar 21, 12:58 am, "Suman" <skar...@gmail.comwrote:
>Hello All,

I have never ever thought about this, till recently I cam across a
book (COM/DCOM Primer)
where ':' is referred to as the scope resolution operator used in the
following context:

class Derived : public Base {
...

Now, '::' is what I know of as the scope resolution operator. This
leads me to ask:
[1] Is ':' at all an operator when used in the above context,
[2] If so, does it have a proper name such as colon operator?
[3] Is it correct to refer to it as the scope resolution opeator?
[4] What does the standard say?


"::" is the scope resolution operator. The colon in question is just
part of the syntax of the base-clause, it has no specific name that
I'm aware of.
It is also used in label specifiers for goto and swich case statements.
The standard does not appear to give it any name but it appears in the
syntactic definitions of these things.
Mar 21 '07 #3

P: n/a
On Mar 21, 9:37 pm, Noah Roberts <u...@example.netwrote:
robertwess...@yahoo.com wrote:
On Mar 21, 12:58 am, "Suman" <skar...@gmail.comwrote:
Hello All,
I have never ever thought about this, till recently I cam across a
book (COM/DCOM Primer)
where ':' is referred to as the scope resolution operator used in the
following context:
[...]
"::" is the scope resolution operator. The colon in question is just
part of the syntax of the base-clause, it has no specific name that
I'm aware of.

It is also used in label specifiers for goto and swich case statements.
The standard does not appear to give it any name but it appears in the
syntactic definitions of these things.
And to begin initializer lists.

Thanks a lot for your replies.

Regards,
Suman

Mar 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.