plans for interfacing to C++

Trass3r un at known.com
Tue Jan 10 04:20:18 PST 2012


On Tuesday, 10 January 2012 at 09:27:03 UTC, deadalnix wrote:
> Le 09/01/2012 19:19, Trass3r a écrit :
>> On Monday, 9 January 2012 at 18:04:58 UTC, Michel Fortin wrote:
>>> Or maybe it should be a pragma instead.
>>
>> Interesting idea. But how to do it properly?
>> A namespace or a class may have lots of functions and I really 
>> wouldn't
>> want to be forced to write pragma(mangledName, 
>> gccmangle("Bla", ...))
>> before every declaration.
>
> @mangled("encrypted klingon here") void foo();
>
> Where encrypted klingon can be generated using CTFE.

And how is this any better than pragma??


More information about the Digitalmars-d mailing list