RAD Studio
ContentsIndex
PreviousUpNext
E2346: 'x' access specifier of property 'property' must be a member function (C++)

Only member functions or data members are allowed in access specifications of properties. 

 

int GlobalGetter(void)
{
     return 0;
}
struct pbase
{
     intMemberGetter(void) {return 1;}
     int __property ip1 = { read = GlobalGetter }; // Error
     int __property ip2 = { read = MemberGetter }; // OK
};
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!