[Lazarus] Problems with Namespaced Types
Andrew Brunner
andrew.t.brunner at gmail.com
Tue Dec 20 02:43:33 CET 2011
Thanks Mattias, see attachment for "uNameSpace.Storage.Folders.PItem"
method to expose CodeTools problem.
Thanks -Andy
On Mon, Dec 19, 2011 at 4:30 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Sat, 17 Dec 2011 19:48:09 -0600
> Andrew Brunner <andrew.t.brunner at gmail.com> wrote:
>
>> 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;
>
> Do you have a more complete example?
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NameSpace.zip
Type: application/zip
Size: 3277 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111219/dbacce19/attachment-0003.zip>
More information about the Lazarus
mailing list