www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - extern (C++, N) is it implemented?

reply Alexandr Druzhinin <drug2004 bk.ru> writes:
This dlang.org/cpp_interface.html says I can do the following

// c++
namespace N {
	void someCppFunction();
}

// d
extern (C++, N) void someCppFunction();

but this http://dpaste.dzfl.pl/e2242263e1dc says I can't

Is this feature implemented?
Aug 05 2014
next sibling parent reply "Dicebot" <public dicebot.lv> writes:
On Wednesday, 6 August 2014 at 06:50:59 UTC, Alexandr Druzhinin 
wrote:
 This dlang.org/cpp_interface.html says I can do the following

 // c++
 namespace N {
 	void someCppFunction();
 }

 // d
 extern (C++, N) void someCppFunction();

 but this http://dpaste.dzfl.pl/e2242263e1dc says I can't

 Is this feature implemented?
Should be in upcoming release.
Aug 05 2014
parent Alexandr Druzhinin <drug2004 bk.ru> writes:
06.08.2014 10:54, Dicebot пишет:
 On Wednesday, 6 August 2014 at 06:50:59 UTC, Alexandr Druzhinin wrote:
 This dlang.org/cpp_interface.html says I can do the following

 // c++
 namespace N {
     void someCppFunction();
 }

 // d
 extern (C++, N) void someCppFunction();

 but this http://dpaste.dzfl.pl/e2242263e1dc says I can't

 Is this feature implemented?
Should be in upcoming release.
Ok. Hope it will )
Aug 06 2014
prev sibling parent "hane" <han.ehit.suzi.0 gmail.com> writes:
On Wednesday, 6 August 2014 at 06:50:59 UTC, Alexandr Druzhinin 
wrote:
 This dlang.org/cpp_interface.html says I can do the following

 // c++
 namespace N {
 	void someCppFunction();
 }

 // d
 extern (C++, N) void someCppFunction();

 but this http://dpaste.dzfl.pl/e2242263e1dc says I can't

 Is this feature implemented?
dpaste provides DMD2.063 as "DMD 2.x Git"! http://dpaste.dzfl.pl/8dd68f98dbd73
Aug 06 2014