<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1561.2">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 14.0px 'Inconsolata-dz for Powerline'}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 14.0px 'Inconsolata-dz for Powerline'; min-height: 20.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; font: 14.0px 'Inconsolata-dz for Powerline'; color: #011892}
p.p4 {margin: 0.0px 0.0px 0.0px 12.0px; font: 14.0px 'Inconsolata-dz for Powerline'; color: #011892; min-height: 20.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 17.0px; font: 14.0px 'Inconsolata-dz for Powerline'; min-height: 20.0px}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 17.0px; font: 14.0px 'Inconsolata-dz for Powerline'}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 17.0px; font: 14.0px 'Inconsolata-dz for Powerline'; color: #011892; min-height: 20.0px}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Inconsolata-dz for Powerline'; min-height: 20.0px}
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Inconsolata-dz for Powerline'; color: #929292}
</style>
</head>
<body>
<p class="p1">On 2018-03-08 16:03:57 +0000, Adam D. Ruppe said:</p>
<p class="p2"><br></p>
<p class="p3">How are you accessing it? If it is by pointer only passing it to methods, you can simply:</p>
<p class="p4"><br></p>
<p class="p3">struct my_cpp_struct;</p>
<p class="p4"><br></p>
<p class="p3">and define functions:</p>
<p class="p4"><br></p>
<p class="p3">extern(C)</p>
<p class="p3">void foo(my_cpp_struct* arg);</p>
<p class="p5"><br></p>
<p class="p6">Hi, :-/ seems I was a bit confused by all the backs and forth on my side. Yes, this will of course work and is sufficient to move on. And the defined functions can be aliased, right?</p>
<p class="p7"><br></p>
<p class="p3">then just declare functions you need and always use as opaque pointer.</p>
<p class="p5"><br></p>
<p class="p6">When running in the VisualD environment in debugging mode, I can't dive into the my_cpp_struct. Seems the debugger doesn't uncover opaque pointers. Or do I need to tell it somehow about it?</p>
<p class="p8"><br></p>
<p class="p9">--<span class="Apple-converted-space"> </span></p>
<p class="p9">Robert M. Münch</p>
<p class="p9">http://www.saphirion.com</p>
<p class="p9">smarter | better | faster</p>
</body>
</html>