Head Const
Chris Wright via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 15 16:21:38 PST 2016
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.
More information about the Digitalmars-d
mailing list