Archive for the ‘C’ Category

MSVC C++ ABI Member Function Pointers

Tuesday, 21 September, 2021

This is a detailed discussion of MSVC C++ ABI pointers to member functions, including some of the trade-offs they make. The format of pointers to member functions in C++ is implementation-defined, and a lot of incomplete and misleading information about this topic can be found around the web. There’s a popular article at Code Project […]

Posted in C, Development, Technology | 6 comments »

And?

Thursday, 4 February, 2010

C++ defines a bunch of aliases for operators. These are kind of cool, and they can make code more readable at times – for example you can write things like: if ((dest bitor netmask) == bcdest and protocol == udp) But in typical C++ fashion, they chose to specify it in a completely brain-dead way. […]

Posted in C, Development, Technology | 1 comment »

Generated Copy Constructors Considered Evil

Saturday, 4 April, 2009

Sometimes I really hate C++. Not just dislike it, but really, really hate it. This week, one of the most horrible language “features” got me again: the generated copy constructor. I understand why they exist — they’re necessary to allow C structures to be passed by value no extra effort. However, their behaviour causes a […]

Posted in C, Development, Technology | No comments »

On Spaghetti

Sunday, 27 July, 2008

Most programming languages have flow control features of some kind. Yeah, I know there are some languages that lack them, for example early programmable shader languages, some macro languages, and I think some programmable calculators just run a program straight through from beginning to end. But by and large, programming languages provide ways to jump […]

Posted in C, Development, Technology | 7 comments »