Browse Source

+ added warning that TImplementedInterface.getcopy is completely broken

git-svn-id: trunk@13732 -
Jonas Maebe 16 years ago
parent
commit
5bda2aa648
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/symdef.pas

+ 5 - 0
compiler/symdef.pas

@@ -4423,6 +4423,11 @@ implementation
     function TImplementedInterface.getcopy:TImplementedInterface;
       begin
         Result:=TImplementedInterface.Create(nil);
+        {$warning: this is completely wrong on so many levels...}
+        { 1) the procdefs list will be freed once for each copy
+          2) since the procdefs list owns its elements, those will also be freed for each copy
+          3) idem for the name mappings
+        }
         Move(pointer(self)^,pointer(result)^,InstanceSize);
       end;