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/)
-   -   Fun Code of the Day #2: Does nil have a type? (https://www.delphipraxis.net/189197-fun-code-day-2-does-nil-have-type.html)

DP News-Robot 15. Mai 2016 16:10

Fun Code of the Day #2: Does nil have a type?
 
Okay, no cheating now. That is, no running the code until you’ve guessed. What is the output of this code?program Project90; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; var S: TObject; begin try S := nil; if S is TObject then begin Writeln('Yup'); end ...http://feeds.feedburner.com/~r/delph...~4/goV7y_xxGx8

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:33 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