Head Const

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 19 04:08:42 PST 2016


On Monday, 15 February 2016 at 22:48:16 UTC, Walter Bright wrote:
> 1. make it easy to interface to C++ code that uses const, as 
> currently it is not very practical to do so, you have to resort 
> to pragma(mangle)

If it's for mangling, there can be lightweight pragma for 
individual parameters:

C++:
func1(int* const* a);
D:
func1(pragma(cppmangle,"int* const*") const int** a);


More information about the Digitalmars-d mailing list