backwards-compatibility
Should I use _T or _TEXT on C++ string literals?
A simple grep of the SDK shows us that the answer is that it doesn’t matter—they are the same. They both turn into __T(x). C:\…\Visual Studio 8\VC>findstr /spin /c:”#define _T(” *.h crt\src\tchar.h:2439:#define _T(x) __T(x) include\tchar.h:2390:#define _T(x) __T(x) C:\…\Visual Studio 8\VC>findstr /spin /c:”#define _TEXT(” *.h crt\src\tchar.h:2440:#define _TEXT(x) __T(x) include\tchar.h:2391:#define _TEXT(x) __T(x) And for completeness: C:\…\Visual Studio … Read more
Which parts of the C++14 Standard Library could be and which parts will be made constexpr?
which parts of the Standard Library will now be marked constexpr? From the draft that I’ve looked at for C++14, N3690, the following will be changed to constexpr thus far (In comparison with the C++11 standard)†: std::error_category‘s default constructor std::forward std::move std::move_if_noexcept All of std::pair‘s operator comparisons std::get for std::pair and std::tuple. std::make_tuple All of … Read more
Usable case of pointer to array with unspecified bounds in C++ (not in C)
Such a pointer cannot participate in pointer arithmetic, potentially useful things that still can be done are to get its type with decltype or reinterpret_cast it to another pointer type or intptr_t. This is because section 3.9p6 says: A class type (such as “class X“) might be incomplete at one point in a translation unit … Read more
Is HTTP/1.0 still in use?
As of 2016, you would think that the prominence would decline even more since 1.1 was introduced in 1999 so this is about 17 years. I checked 7,727,198 lines of logs to see what percent I get of HTTP/1.0 and HTTP/1.1: Protocol Counts Percent ——————————– HTTP/0.9 0 0.00% HTTP/1.0 1,636,187 21.17% (all) HTTP/1.0 15,415 0.20% … Read more
Will TortoiseSVN 1.7 work properly against a SVN 1.6 repository?
In the release notes Older clients and servers interoperate transparently with 1.7 servers and clients … Subversion 1.7 servers use the same repository format as Subversion 1.6. Therefore, it is possible to seamlessly upgrade and downgrade between 1.6.x and 1.7.x servers without changing the format of the on-disk repositories There is no need to do … Read more
How well does jQuery support backward compatibility?
jQuery seems to be nicely backward compatible. I have been using it for more than a couple of years now through several versions of the core and have not had issues when upgrading except a few minor ones with some plugins. I would say that the core seems to be fine but if you’re using … Read more
Why not remove type erasure from the next JVM?
Type erasure is more than just a byte code feature that you can turn on or off. It affects the way the entire runtime environment works. If you want to be able to query the generic type of every instance of a generic class, it implies that meta information, comparable to a runtime Class representation, … Read more
Is JDK “upward” or “backward” compatible?
Note that for something to be backwards compatible there must be a counterpart that is forwards compatible (either intentionally or unintentionally). For example: are the DVD readers backwards compatible with CD’s or are the CD’s forward compatible with DVD readers? In this case, it depends if you look at the compiler (or the bytecode it … Read more
Is Visual Studio 2017 backwards compatible with Visual Studio 2015 solutions?
It depends on the type of project. For most (standard) types, for example web projects (Full .NET Framework), Windows projects VS 2017 is forward and backward compatible with VS 2015, solutions and projects formats are the same. But not compatible for .NET Core projects, because project.json was changed back to .csproj.