Re: [Flightgear-devel] New SimGear Class definition

2001-12-19 Thread Erik Hofman
Frederic Bouvier wrote: > And namespaces can be closed and reopened. Classes must be contained within > a > single pair of braces. > > You can have : > > namespace foo { > // C++ code > } > namespace bar { > // C++ code > } > namespace foo { > // C++ code > } Sounds good. I think namesp

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread Frederic Bouvier
r big projects that span over multiple files without clumsy #include in the class definition. I vote for namespaces -Fred - Original Message - From: "David Megginson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 12:46 PM Subject: Re: [Flightge

Re: [flightgear-devel] New SimGear Class definition

2001-12-18 Thread jsb
> Erik Hofman wrote: > > Please correct me if I'm wrong, but to my understanding namespaces are > > like classes but without the overloading and such? > > Namespaces are just namespaces. :) > > So I can (and did) write stuff like: > > namespace yasim { class Propeller { ... }; }; > > without

Re: [flightgear-devel] New SimGear Class definition

2001-12-18 Thread Andy Ross
Erik Hofman wrote: > Please correct me if I'm wrong, but to my understanding namespaces are > like classes but without the overloading and such? Namespaces are just namespaces. :) Some languages call them "packages" or "modules", but the idea is really simple: a symbol (function, class, global v

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread Erik Hofman
David Megginson wrote: > Erik Hofman writes: > > David Megginson wrote: > > > > I agree strongly on namespaces -- they'll eliminate some of our MSVC > > > conflicts as well, especially if people avoid using global #defines > > > whenever possible. Do all of our target compilers now support

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread David Megginson
Erik Hofman writes: > David Megginson wrote: > > I agree strongly on namespaces -- they'll eliminate some of our MSVC > > conflicts as well, especially if people avoid using global #defines > > whenever possible. Do all of our target compilers now support them? > > > Please correct me i

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread Erik Hofman
Bernie Bright wrote: > I've been using the Boost libraries (http://www.boost.org) for some time > now and that is what they do. Portability is one of Boost's goals. I > also wouldn't mind the opportunity to refactor the compiler > configuration stuff similar to how Boost has done it. This mi

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread Erik Hofman
David Megginson wrote: > I agree strongly on namespaces -- they'll eliminate some of our MSVC > conflicts as well, especially if people avoid using global #defines > whenever possible. Do all of our target compilers now support them? Please correct me if I'm wrong, but to my understanding nam

Re: [Flightgear-devel] New SimGear Class definition

2001-12-18 Thread Erik Hofman
Bernie Bright wrote: > > Refactoring SimGear is probably a Good Thing since it has accumulated > some cruft over time and some areas need reworking. However I don't > think that having bogus top level classes is a good idea. Instead I > propose we use namespaces. Perhaps a top level SimGear

Re: [Flightgear-devel] New SimGear Class definition

2001-12-17 Thread Bernie Bright
Andy Ross wrote: > > > I believe so, although some just ignore namespace declarations > > (gcc-2.95!). My only guideline is Boost, it targets many the same > > platforms we do (and some we don't). > > The gcc-2.95 I'm using (the one named something different, packaged by > a distribution ven

Re: [Flightgear-devel] New SimGear Class definition

2001-12-17 Thread Andy Ross
Bernie Bright writes: > David Megginson wrote: > > Bernie Bright writes: > > > Perhaps a top level SimGear namespace with second level > > > namespaces corresponding to the major functional divisions, as > > > you've outlined. I think we should eliminate the Misc group as > > > well. > >

Re: [Flightgear-devel] New SimGear Class definition

2001-12-17 Thread Bernie Bright
David Megginson wrote: > > Bernie Bright writes: > > > Refactoring SimGear is probably a Good Thing since it has accumulated > > some cruft over time and some areas need reworking. However I don't > > think that having bogus top level classes is a good idea. Instead I > > propose we use na

Re: [Flightgear-devel] New SimGear Class definition

2001-12-17 Thread David Megginson
Bernie Bright writes: > Refactoring SimGear is probably a Good Thing since it has accumulated > some cruft over time and some areas need reworking. However I don't > think that having bogus top level classes is a good idea. Instead I > propose we use namespaces. Perhaps a top level SimGear

Re: [Flightgear-devel] New SimGear Class definition

2001-12-17 Thread Bernie Bright
Erik Hofman wrote: > > Hi, > > Today i have taken some time to take a look at the SimGear code and > decided it might be time to create a new class definition. > > I'm not sure this is the right time to discuss about it. But then again, > I always have the feeling it might not be the right time

[Flightgear-devel] New SimGear Class definition

2001-12-17 Thread Erik Hofman
Hi, Today i have taken some time to take a look at the SimGear code and decided it might be time to create a new class definition. I'm not sure this is the right time to discuss about it. But then again, I always have the feeling it might not be the right time. ;-) This is a definition which