Hi All,<br><br>&nbsp;&nbsp; &nbsp;does anyone know (or even better has anyone fixed it) how hard it is to make Slang inline methods that contain simple type declarations?<br><br>I would like to eliminate compile-time integer/pointer mismatch errors in the new StackInterpreter I&#39;m writing. &nbsp;I&#39;d like to say things like:<br>
<br><div><span class="Apple-style-span" style="font-weight: bold;">callerSPOf: </span>theFP</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&quot;Answer the SP of the caller provided theFP is not a base frame.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> This points to the hottest item on the frame&#39;s stack.&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self var: #theFP type: &#39;char *&#39;.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>self returnTypeC: &#39;char *&#39;.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self assert: (self isBaseFrame: theFP) not.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>^theFP + FoxCallerSavedIP + ((self frameNumArgs: theFP) + 2 * BytesPerWord)</div><div><br>but Slang refuses to inline anything that has C declarations. &nbsp;I&#39;m guessing that the issue is moving the type information from the method to its inlined form. &nbsp;It took me half a day to discover where Slang refuses to inline (should have looked in the obvious place CCodeGenerator&gt;&gt;collectInlineList, instead of in the inlining code :/ ). &nbsp;So I&#39;m afraid to waste the time trying to find out where the restriction bites. &nbsp;Anyone know how to fix this or better still have a fix?<br>
<br>best<br>Eliot<br></div>