Visual C++ properties (Teaching an old dog old tricks)...
-
Correct me if I'm wrong, but Visual C++ seems to have gotten properties right (this native Visual C++, non-standard attribute)... __declspec( property( get=get_func_name, put=put_func_name ) ) declarator I'm embarassed to say that they've had this for a long time and I'm only now messing with it (yes, I realize there are articles that talk about it here but I had never truly wanted to use this until just recently), but their approach to properties for native Visual C++ development allows the property to be used like a member (assuming proper implementation of the accessor and mutator of course) whereas the C# implementation has the restriction "A property or indexer may not be passed as an out or ref variable". So far it seems to work intuitively (and can do things C# properties can't :cool:), but... Does anyone know of any serious negative aspects to using it besides that it's not standard? Am I missing some caveat?