www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Binding C++ value types

reply Benjamin Thaut <code benjamin-thaut.de> writes:
When binding C++ value types you might want to use them by placing them 
on the D-Stack. This however seems to be not supported as the mangling 
for the constructor is completely wrong. Is this supposed to work?

Kind Regards
Benjamin Thaut
Feb 09 2015
parent "Nicholas Wilson" <iamthewilsonator hotmail.com> writes:
On Monday, 9 February 2015 at 19:30:32 UTC, Benjamin Thaut wrote:
 When binding C++ value types you might want to use them by 
 placing them on the D-Stack. This however seems to be not 
 supported as the mangling for the constructor is completely 
 wrong. Is this supposed to work?

 Kind Regards
 Benjamin Thaut
See https://issues.dlang.org/show_bug.cgi?id=14086 I can't see any reason why it should not to work. It is a very valid use case. Nic
Feb 09 2015