On Sun, 03 May 2015 18:07:20 -0700, Dan Olson wrote: > It seems a private class or struct defaults to public members. Just > curious if this is intended. I would have expected private all the way > down unless overriden.
i bet it is intended. protection of struct/class members is independed of protection of struct/class itself. this is good for code consistency: no changing of outer protection flags can alter struct/class inner machinery. so if you changed your mind about protection level of some global things, you shouldn't unnecessary "fix" your code in completely unrelated places.
signature.asc
Description: PGP signature