<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>yes you are right, thank you!<br>
</p>
<br>
<div class="moz-cite-prefix">On 06/11/2018 12:29 AM,
<a class="moz-txt-link-abbreviated" href="mailto:vuott@tiscali.it">vuott@tiscali.it</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d518e2f7aa5aa85b68b96e38cdc0bdc1@tiscali.it">
<div><span id="result_box"><span>When the identifier of an
external function coincides with the identifier of a Gambas
function, it is necessary to change the name of the external
function and to use Exec.</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<div><span id="result_box"><span>Ad exemplum:</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<div><span id="result_box"><span>' int abs (int number)<br>
Public Extern abs_C(number As Integer) As Integer Exec "abs"</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<div><span id="result_box"><span><span id="result_box"><span>You
use the name abs_C, but tell Gambas that it has to use
the real abs () function.</span></span><br>
</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<div><span id="result_box"><span><br>
</span></span></div>
<p>Il 10.06.2018 21:59 Jussi Lahtinen ha scritto:</p>
<blockquote type="cite" style="padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>Gambas does the conversions for you, thus interger and
long are just subsets of float. In C that is completely
different thing.</div>
<div>In other words, Gambas Abs does everything what int abs,
long abs and float abs combined does in C.</div>
<div>Jussi</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jun 10, 2018 at 10:52 PM,
Demosthenes Koptsis <span><<a
href="mailto:demosthenesk@gmail.com"
moz-do-not-send="true">demosthenesk@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex;
border-left: 1px #ccc solid; padding-left: 1ex;">
<div>
<p>just for compatibility of porting libc</p>
<p>there are int abs, long abs, single abs, float abs</p>
<p>Gambas abs is only for floats</p>
<p>not great function but it gave us the bug to
autocomplete system!</p>
<div>
<div class="h5"><br>
<div class="m_-2568333697185410534moz-cite-prefix">On
06/10/2018 10:30 PM, Jussi Lahtinen wrote:</div>
<blockquote type="cite" style="padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px;
width:100%">
<div dir="ltr">
<div>Yes, but why bother? Gambas already has
abs().</div>
<div>Jussi</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jun 10, 2018 at
10:09 PM, Demosthenes Koptsis <span><<a
href="mailto:demosthenesk@gmail.com"
moz-do-not-send="true">demosthenesk@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:
0 0 0 .8ex; border-left: 1px #ccc solid;
padding-left: 1ex;">is this correct?<br>
<br>
'int abs (int number)<br>
Public Extern {abs}(number As Integer) As
Integer<br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a
href="https://www.hostsharing.net"
moz-do-not-send="true">https://www.hostsharing.net</a>
]----</blockquote>
</div>
</div>
<br>
<fieldset
class="m_-2568333697185410534mimeAttachmentHeader"></fieldset>
<br>
<pre>----[ Gambas mailing-list is hosted by <a class="m_-2568333697185410534moz-txt-link-freetext" href="https://www.hostsharing.net" moz-do-not-send="true">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
</div>
</div>
</div>
<br>
<br>
----[ Gambas mailing-list is hosted by <a
href="https://www.hostsharing.net"
moz-do-not-send="true">https://www.hostsharing.net</a>
]----<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
<br>
<br>
Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo
smartphone a 9€ al mese per sempre. Passa ora a Tiscali Mobile, il
nostro mese è vero! <a href="http://tisca.li/Open6GB0318"
target="_blank" moz-do-not-send="true">http://tisca.li/Open6GB0318</a><br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
<br>
</body>
</html>