<!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="1671.4">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 16.0px 'Inconsolata-dz for Powerline'}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000080}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000080; min-height: 21.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000000; min-height: 21.0px}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #000000}
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; min-height: 21.0px}
p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px 'Inconsolata-dz for Powerline'; color: #808080}
</style>
</head>
<body>
<p class="p1">On 2019-05-08 17:02:07 +0000, Adam D. Ruppe said:</p>
<p class="p2"><br></p>
<p class="p3">Those are two *entirely different* functions, `a.otherFunc` and `myapp.otherFunc`.</p>
<p class="p4"><br></p>
<p class="p5">That's what I expected...</p>
<p class="p6"><br></p>
<p class="p3">Generally the answer here is "don't do that". Just have module a `import myapp` and then call otherFunc.</p>
<p class="p4"><br></p>
<p class="p5">That's exactly what I want to avoid because "module a" is a generic one and shouldn't be touched to add any reference to user-specific code. In this case that would be the module name.</p>
<p class="p4"><br></p>
<p class="p3">But if you must hack around it - and seriously ask yourself if this is good design before committing to it - you can slap `extern(C)` on the `otherFunc` declaraton and definition to force them to match up in the global namespace.</p>
<p class="p7"><br></p>
<p class="p8">Thanks, I didn't thought that I need to go the C road for this.</p>
<p class="p9"><br></p>
<p class="p10">--<span class="Apple-converted-space"> </span></p>
<p class="p10">Robert M. Münch</p>
<p class="p10">http://www.saphirion.com</p>
<p class="p10">smarter | better | faster</p>
</body>
</html>