On Tue, Feb 16, 2016 at 12:21:38AM +0000, Chris Wright via Digitalmars-d wrote: > On Mon, 15 Feb 2016 16:14:23 -0800, H. S. Teoh via Digitalmars-d wrote: > > Just out of curiosity, since we already have Rebindable in Phobos > > and HeadConst is being proposed, what are the disadvantages / > > shortcomings of a library solution that would justify adding yet > > another feature to the language? > > C++ interfacing requires either a well-known type that the compiler > special-cases or a builtin attribute. D could ignore this for all > purposes besides name mangling, though, and that would be an okay > compromise.
What about besides C++ integration? 'cos I remember some people were complaining that a library solution is bad, but I've forgotten what the reasons were. My thinking is that if the current library solution is bad, or messy, or whatever, and other such library solutions exhibit similar problems, then perhaps what we should be looking at is how to make the language more conducive to implementing nice, usable library solutions to this and a host of other problems, rather than throwing everything and the kitchen sink into the language and end up with an unmaintainable mess. T -- This sentence is false.