[Lazarus] Problems with Namespaced Types

Andrew Brunner andrew.t.brunner at gmail.com
Sun Dec 18 02:48:09 CET 2011


I just realized that codetools can't navigate functions with
references to pointers

Adding "SomeMethod" as a procedure worked OK.
Adding it as a Function - produced an exception in Code Tools.

  TForm1 = class(TForm)  private    { private declarations }  public
 { public declarations }    function  SomeMethod(Var
ItemP:uNameSpace.Storage.Folders.PItem):uNameSpace.Storage.Folders.PItem;
   procedure MyEvent(var Item:uNameSpace.Storage.Folders.TItem);  end;
var  Form1: TForm1;
implementation
{$R *.lfm}
procedure TForm1.MyEvent(var Item:uNameSpace.Storage.Folders.TItem);begin
end;
function TForm1.SomeMethod(Var
ItemP:uNameSpace.Storage.Folders.PItem):uNameSpace.Storage.Folders.PItem;begin
end;

On Thu, Dec 15, 2011 at 7:27 PM, Andrew Brunner
<andrew.t.brunner at gmail.com> wrote:
> On Thu, Dec 15, 2011 at 6:11 PM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>> Done.
>>
>> Mattias
>
> Works well! Very good!  Thanks so much.




More information about the Lazarus mailing list