Re: namespaces and prefix types in context analysis

"Martin Stein" <[email protected]> Tue, 3 Mar 2015 07:03:34 +0100
Newsgroups gmane.emacs.cedet
Message-ID <trinity-b1060e42-1541-40ef-9c02-68b903f333d8-1425362614415@3capp-gmx-bs46>
Small correction, the cpp example should look like this (and compiles after replacing the !-?- parts with xx.yy.zz):

namespace mystructs
{
   struct aaa
   {
     int xx;
   };

   struct bbb
   {
     struct aaa yy;
   };
}

int fun()
{
   using namespace mystructs;
   struct bbb zz;
   int uu = zz.!-1-;
   int vv = zz.yy.!-2-;
}

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/