[fpc-pascal] New feature: IfThen() intrinsic

leledumbo leledumbo_cool at yahoo.co.id
Mon Feb 1 09:34:52 CET 2016


> If i understand correctly "ThenExpr" is executed only when "Condition" is
true and "ElseExpr" is executed only when "Condition" is false. For standard
"IfThen" from Math and StrUtils "ThenExpr" and "ElseExpr" is executed before
IfThen is called.

This is one thing that becomes my concern as expected side effect might not
be triggered due to semantic differences, although I seldom use IfThen from
either math/strutils (not lazy enough to write complete `if ... then begin
... end else begin ... end` for the sake of easy future modification).



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/New-feature-IfThen-intrinsic-tp5723735p5723748.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list