Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

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

Fun Code of the Day #2: Does nil have a type?

  Alt 15. Mai 2016, 16:10
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 ...

More...
  Mit Zitat antworten Zitat