瀏覽代碼

+ add a comment to the destructor of tsymtable so that others (and maybe me a well) will hopefully see that the destructor of that class is not completely trivial!

git-svn-id: trunk@39694 -
svenbarth 7 年之前
父節點
當前提交
70ae0a2dc9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/symbase.pas

+ 1 - 0
compiler/symbase.pas

@@ -104,6 +104,7 @@ interface
           sealed : boolean;
           symtabletype  : TSymtabletype;
           constructor Create(const s:string);
+          { attention: only execute the a child's destructor if refcount is 1! }
           destructor  destroy;override;
           procedure freeinstance;override;
           function  getcopy:TSymtable;