MC++ class visibility specifier

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.
 
T

Tomas Restrepo \(MVP\)

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.
 
E

Edward Diener

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top