Semantic parses even if incorrect operator used
rjd <[email protected]> Tue, 24 Feb 2015 21:12:47 +0000 (UTC)
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
Whether I create a pointer to a user defined object or instantiate a user
defined object, I can interchangeably use the -> or . operators to access
members/methods.
=== EXAMPLE ===
#include <iostream>
struct MyStruct
{
MyStruct( void ) { }
~MyStruct( void ) { }
int data;
int getData( void ) const { return data; }
};
int main( void )
{
MyStruct* ms = new MyStruct();
ms. // works
return 0;
}
=== END EXAMPLE ===
------------------------------------------------------------------------------
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/