new class 4



new class 4
Smart pascal source code
type TMyClass = class end; var c: TClass; try new c; except on E: Exception do WriteLn(E.Message); end; c := TObject; WriteLn(new c.ClassName); c := TMyClass; WriteLn(new c.ClassName); {<<< RESULT - CONSOLE LOG >>> ----------------------------- ClassType is nil [line: 8, column: 8] TObject TMyClass ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}