4 ms·
There is a single C++ compiler that supports export. Out of all the C++ compilers, only a single one supports it. Mainly because it is such a HUGE pain in the a
by X-Istence 12y ago
There is a single C++ compiler that supports export. Out of all the C++ compilers, only a single one supports it. Mainly because it is such a HUGE pain in the ass to write support for.
See this paper as to why it was removed from the spec: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1426.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n142...
- andrewchambers 12y agoThose guys had serious dedication to essentially waste 3 years implementing it, just to say how useless it is.
- Retra 12y ago"John Spicer notes: “Any program written using export can be rearranged trivially into a program that doesn’t use export.”" This makes me wonder why they couldn't have implemented this rearrangement as export...
- andrewchambers 12y agoProbably trivially with some human judgment.
- userbinator 12y agoThat is a great counterpoint to this comment I saw recently: https://news.ycombinator.com/item?id=9126237 https://news.ycombinator.com/item?id=9126237