Dark font on dark background. Unreadable.
There are some advantages to the company firewall blocking style sheets.
Obscure C++ Features
11–20 of 58 posts
Re: Obscure C++ Features
#12Re: Obscure C++ Features
#13The behavior of [] is from C -- it's not a bizarro C++ feature. The "redefining keywords" is the pre-processor. That's what it does. There isn't anything magic here. Strictly speaking it can be run entirely ahead of the C/C++ compiler, on any file you want. There's no requirement that it is C/C++ - you could use it on a python script (as long as you weren't using # comments anywhere :D )
Re: Obscure C++ Features
#14 if (MouseEvent *mouse = dynamic_cast(event))
I think it is a complicated description and a complicated example for saying that the assignment operator (=) returns the value that was assigned.Re: Obscure C++ Features
#15The behavior of [] is from C -- it's not a bizarro C++ feature. The "redefining keywords" is the pre-processor. That's what it does. There isn't anything magic here. Strictly speaking it can be run entirely ahead of the C/C++ compiler, on any file you want. There's no requirement that it is C/C++ - you could use it on a python script (as long as you weren't using # comments anywhere :D )
I'd say that a feature of C++ is still a feature of C++ even if the same feature is in C.
Re: Obscure C++ Features
#16C++ contains a syntactical shorthand for simultaneously declaring a variable and branching on its value. if (MouseEvent *mouse = dynamic_cast (event)) I think it is a complicated description and a complicated example for saying that the assignment operator (=) returns the value that was assigned.
Re: Obscure C++ Features
#17Are these really obscure? I've used most of them.
Re: Obscure C++ Features
#18Are these really obscure? I've used most of them.
Re: Obscure C++ Features
#19The behavior of [] is from C -- it's not a bizarro C++ feature. The "redefining keywords" is the pre-processor. That's what it does. There isn't anything magic here. Strictly speaking it can be run entirely ahead of the C/C++ compiler, on any file you want. There's no requirement that it is C/C++ - you could use it on a python script (as long as you weren't using # comments anywhere :D )
>The behavior of [] is from C -- it's not a bizarro C++ feature. I'd say that a feature of C++ is still a feature of C++ even if the same feature is in C.
Re: Obscure C++ Features
#20C++ contains a syntactical shorthand for simultaneously declaring a variable and branching on its value. if (MouseEvent *mouse = dynamic_cast (event)) I think it is a complicated description and a complicated example for saying that the assignment operator (=) returns the value that was assigned.