MC++ class visibility specifier

  • Thread starter Thread starter Edward Diener
  • Start date Start date
E

Edward Diener

Does a class visibility specifier ( public or private ) come before or after
the __ extensions specifiers ( __gc , __delegate, __value ) when declaring a
MC++ class/struct ? Or does it not matter.

public __gc class AGCClass {};

or

__gc public class AGCClass {};

In some example code in the MSDN doc for MC++ I see one way and in other
example code I see the other.
 
Edward,
Does a class visibility specifier ( public or private ) come before or after
the __ extensions specifiers ( __gc , __delegate, __value ) when declaring a
MC++ class/struct ? Or does it not matter.

public __gc class AGCClass {};

or

__gc public class AGCClass {};

In some example code in the MSDN doc for MC++ I see one way and in other
example code I see the other.

Either one is valid, afaik. Personally, I prefer the first variation.
 
Tomas said:
Edward,


Either one is valid, afaik. Personally, I prefer the first variation.

Good to know. I also agree that always keeping __gc with what it modifies
seems clearer.
 
Back
Top