<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-01-10 13:14 GMT+01:00 Levente Uzonyi <span dir="ltr"><<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On Sun, 10 Jan 2016, Nicolai Hess wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
pharo fogbugz issue: 17359 MessageNotUnderstood: receiver of "keywords" is nil<br>
<br>
<br>
is this valid pragma syntax:<br>
<br>
<apicall: bool 'SetCursorPos' (long long) module: 'user32.dll'><br>
</blockquote>
<br></span>
This is not a pragma, but the special syntax used by FFI. AFAIK it predates pragmas.<span class=""><br></span></blockquote><div><br></div><div>Ah, ok.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
our (pharo) parser can not parse this (does not recognizes the<br>
"selector parts" (apicall:module:) right)<br>
<br>
Any recommendations how to fix this<br>
- fix RBParser or<br>
- change this pragma, for example, like this<br>
<apicall: #(bool SetCursorPos (long long)) module: 'user32.dll'><br>
</blockquote>
<br></span>
There's nothing to fix here. Either you change your parser, compiler and decompiler to support this syntax, but knowing how things work in Pharo, this is not an option</blockquote><div><br></div><div>Why is this not an option?<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">, or change the methods with these callouts, introducing another incompatibility between Pharo and the rest, to use pragmas and create a custom parser, compiler and decompiler to be able to compile FFI callouts into methods when such pragmas are present.<br></blockquote><div><br></div><div>As we now included this FFI-Examples, where this is used, I would like to find a way that works in both, pharo and squeak.<br><br></div><div>@esteban<br></div><div>is this already supported by "our" FFI and just not by the parser used for syntax highlighting or wasn't this package supposed to be in Pharo ?<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Levente<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
nicolai<br>
<br>
</blockquote>
<br><br>
<br></blockquote></div><br></div></div>