AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Delphi-PRAXiS - Lounge Delphi-News aus aller Welt New inline if statement slated for Delphi 13
Thema durchsuchen
Ansicht
Themen-Optionen

New inline if statement slated for Delphi 13

Ein Thema von DP News-Robot · begonnen am 16. Aug 2025
Antwort Antwort
Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
16.052 Beiträge
 
#1

New inline if statement slated for Delphi 13

  Alt Gestern, 11:20
The new feature currently planned for release in the forthcoming Delphi 13 that I'm most excited about is the inline if statement.According to Marco Cantu's blog post, the new syntax is like this:X := if Left < 100 then 22 else 45;Another use is something like this:ShowMessage(if Odd(X) then 'odd' else 'even');The values returned from the then and else parts must be of the same or compatible

Weiterlesen...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:45 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz