Obscure C++ Features
madebyevan.com
Obscure C++ Features
1–10 of 58 posts
Re: Obscure C++ Features
#2Re: Obscure C++ Features
#3Re: Obscure C++ Features
#4Dark font on dark background. Unreadable.
Re: Obscure C++ Features
#5Re: Obscure C++ Features
#6Re: Obscure C++ Features
#7Are these really obscure? I've used most of them.
Re: Obscure C++ Features
#8The "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
#9The 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 )
1. Not easily distinguished
2. Not readily understandable/expressable
3. Not commonly known
I didn't see the author use the word "bizarro" anywhere, nor make any claims about any of this stuff being weird. He actually presented almost everything in a fairly neutral tone, except when he said that using the preprocessor to override keywords was dangerous (which could be construed as opinion).