<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 1:51 AM, Frank Shearar <span dir="ltr"><<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(Installer monticello mc: (MCHttpRepository new location:<br>
'<a href="http://source.squeak.org/FFI'" target="_blank">http://source.squeak.org/FFI'</a>))<br>
install: 'FFI-Kernel-eem.24.mcz'. "There's a -tbn.25, but that's<br>
not important to this post"<br>
<br>
fails with an MNU: ExternalFunction class >> callingConventionFor:.<br>
<br>
As far as I can see what's happening is this:<br>
* during the loading of the mcz ExternalFunction is defined,<br>
* a method is parsed (#XOpenDisplay, which has a pragma <cdecl:<br>
X11Display* ''XOpenDisplay'' (char*) module:''X11''>)<br>
* Parser >> externalFunctionDeclaration checks whether<br>
ExternalFunction is defined.<br>
* It is, so tries to evaluate `descriptorClass callingConvention:<br>
here` and boom, because ExternalFunction class >><br>
callingConventionFor: _has not been loaded yet_.<br></blockquote><div><br></div><div>I thought we'd modified Monticello to load new methods first. Did this not get added to trunk?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I've seen this kind of issue with Helvetia code: sometimes you simply<br>
have to load class-side methods first.<br>
<br>
Thoughts? Lukas worked around the issue with his Helvetia code by<br>
directly patching Monticello, and ripping out its "try to do atomic<br>
loading" mechanism.<br>
<span class="HOEnZb"><font color="#888888"><br>
frank<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>