<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<span id="result_box" class="short_text" lang="en"><span
title="Clique para mostrar traduções alternativas" class="hps">I
come</span> <span title="Clique para mostrar traduções
alternativas" class="hps">here</span> <span title="Clique para
mostrar traduções alternativas" class="hps">humbly</span> <span
title="Clique para mostrar traduções alternativas" class="hps">to</span>
<span title="Clique para mostrar traduções alternativas"
class="hps">ask for</span> <span title="Clique para mostrar
traduções alternativas" class="hps">a</span> <span
title="Clique para mostrar traduções alternativas" class="hps">new</span>
<span title="Clique para mostrar traduções alternativas"
class="hps">implementation, the IIF</span></span> ?:, the IIF is
a shortcut that make the coding a little faster, it works by
returning a true or a false part of a condition, a more detailed
information can be found there: <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/%3F:">http://en.wikipedia.org/wiki/%3F:</a><br>
<br>
<b>PHP and C++ implementation:</b> Value <b>=</b> condition <b>?</b>
value if true <b>:</b> value if false;<br>
<b>Pascal implementation:</b> Value := IfThen(Condition, TruePart,
FalsePart);<br>
<br>
<b>function IfThen(Condition: Boolean; IfTrue, IfFalse: X): X;
overload;<br>
begin<br>
if Condition then Result := IfTrue else Result := IfFalse;<br>
end;<br>
</b><br>
The problem: we have to do <b>one function for every type</b>, on
the C and PHP method is is <b>globally</b><br>
If we want one for Integer we must declare one for it, if we want
one for X we need to declare it...<br>
<br>
I want to know from you, what you would think about it on FPC? I
don't belive that it is a hard feature to implement and is helpfull.
I'll be waiting for your response!<br>
<br>
<b><span id="result_box" class="" lang="en"><span title="Clique para
mostrar traduções alternativas" class="hps">If</span> <span
title="Clique para mostrar traduções alternativas" class="hps">this</span>
<span title="Clique para mostrar traduções alternativas"
class="hps">is</span> <span title="Clique para mostrar
traduções alternativas" class="hps">not</span> <span
title="Clique para mostrar traduções alternativas" class="hps">the</span>
<span title="Clique para mostrar traduções alternativas"
class="hps">right</span> <span title="Clique para mostrar
traduções alternativas" class="hps">mailing list</span> <span
title="Clique para mostrar traduções alternativas" class="hps">for</span>
<span title="Clique para mostrar traduções alternativas"
class="hps">proposals,</span> <span title="Clique para
mostrar traduções alternativas" class="hps">then</span> <span
title="Clique para mostrar traduções alternativas" class="hps">I
apologize</span><span title="Clique para mostrar traduções
alternativas">.</span></span><br>
</b><br>
Thank you,<br>
Bizz<br>
</body>
</html>