Delphi 'private' clause (directive) does not work
问题 I'm trying to check if my private procedures are really private. But it works the way it shouldn't. Please help me, maybe I missed something about how the incapsulation should work. This code should not work. I guess. But it works. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type tmyclass = class private procedure one; end; TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private