Re: [fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Hans-Peter Diettrich
Andrew Brunner schrieb: I got it to work by declaring the Callback Event Type in the Storage.Folders area and declared that type in the other unit which linked just fine. It appears that the references cannot be located from outside that namespace. That's why I wonder what namespaces are *goo

Re: [fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Andrew Brunner
> Can you report a small but full example to the bug tracker? Yes, I was able to get it to fail with just a simple unit test. It's a lazarus project. http://mantis.freepascal.org/view.php?id=20909 ___ fpc-devel maillist - fpc-devel@lists.freepascal.or

Re: [fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Andrew Brunner
Probably, I got it to work by declaring the Callback Event Type in the Storage.Folders area and declared that type in the other unit which linked just fine. It appears that the references cannot be located from outside that namespace. On Thu, Dec 15, 2011 at 4:14 PM, Paul Ishenin wrote: > 16.

Re: [fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Paul Ishenin
16.12.11 1:58, Andrew Brunner пишет: class storage class Folders Type Item=record end; PItem=^TItem TItems=array of PItem Variables in some other unit compile OK. in some other unit: type MyCallback=procedure(

[fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Andrew Brunner
class storage class Folders Type Item=record end; PItem=^TItem TItems=array of PItem Variables in some other unit compile OK. in some other unit: type MyCallback=procedure(Var Items:Storage.Folders.TItems); // linking fa