[PATCH v4 1/6] Added simple unit/integration test framework and corresponding test program.

Bill Spitzak spitzak at gmail.com
Wed Jun 24 09:32:08 PDT 2015

On Tue, Jun 23, 2015 at 9:55 PM, Jon A. Cruz <jonc at osg.samsung.com> wrote:

> Looking into it more, I think I've figured out much of that on my part
> comes from C++ and other OO languages I've worked in. Especially with
> C++ one should start a class declaration with a single 'public' section
> followed optionally by a single 'protected' section and finally a single
> 'private' section if needed. So the general structure tends to be from
> higher-level first in the file down to lower-level later on. Also IDE
> use can promote the "F3 to go do declaration" over manually scrolling
> approach.
> Well actually C++ as initially designed certainly expected the private
section to go first. It acts as though "private:" is right after the
opening brace for the class. In fact the only difference between "struct"
and "class" is whether there was an implied "public:" or "private:" at the
start (Microsoft screwed this up by putting whether struct or class was
used into the name mangling, however).

I agree that the majority of C++ code now ignores this plan and puts the
private section last, so that the "useful" part of the header file is first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150624/8c5cbdf1/attachment.html>

More information about the wayland-devel mailing list