Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   if then (else) expressions (https://www.delphipraxis.net/172513-if-then-else-expressions.html)

DP News-Robot 8. Jan 2013 13:20

if then (else) expressions
 
“if” expressions are now supported in DWScript SVN, those were introduced to Pascal by Oxygene a couple years back, and are Pascal’s verbose version of the C ternary operator (?:). For instance var s := if (a0) then Sin(1/a) else 1; being equivalent to var s : Float; if ...http://feeds.feedburner.com/~r/delph...~4/-zirNBhfUVg

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz