<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I havent succeeded in doing that. I find it very frustrating that
the overload stuff does not distinguish between integer and int64.
It doesnt work for float and datetime either. I have ended up
having prefixes for the data type.<br>
<br>
On 21/09/2010 11:08, John Bird wrote:
<blockquote cite="mid:C7931557678841E49967C52EDE46BF8B@JohnSony2"
type="cite">
<pre wrap="">Quite a few built in Delphi functions accept either integer or int64 as an
argument, I checked into inttostr for instance, in that case its asm code.
I have quite a few standard number processing routines, and up to now have
done one version for integer, and another for int64.
Is it feasible to have an argument/parameter to a function that can be
either (like Delphi does)?
is it possible to test whether such an argument is either integer or int64?
Related - Does anyone know if an int128 is on the cards down the track? (I
have some functions that use numbers nearly up to int64 limit - 17 of the 18
digits decimal length)
John
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5465 (20100920) __________
The message was checked by ESET NOD32 Antivirus.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
Regards<br>
<br>
<b>Rohit Gupta</b><br>
B.E. Elec., M.E., Mem IEEE, Member IET<br>
Technical Manager<br>
Computer Fanatics Ltd<br>
<br>
<b>Tel </b>4892280 <br>
<b>Fax </b>4892290 <br>
<b>Web </b><a>www.cfl.co.nz</a><br>
<hr>
This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright.
If you are not the intended recipient, you must not use,
distribute or copy this email or attachments. If you have received
this in error, please notify us immediately by return email and
then delete this email and any attachments.</div>
</body>
</html>