this - SMART ecosystem



this (SMART reference object)
Smart pascal source code
type TMyObj = class function this : TMyObj; end; function TMyObj.this : TMyObj; begin Result:=Self; end; var obj : TMyObj; obj := TMyObj.Create; WriteLn(obj.This); // --> {"ClassType":{"$ClassName":"TMyObj","$Parent":{"$ClassName":"TObject","$Parent":null}}}