delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
X-Original-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=date:from:to:subject:message-id:in-reply-to:references:mime-version | |
:content-type:content-transfer-encoding; | |
bh=l1IPrM7R/Sii4UksIugo4oFGpEJkyVzfao7jzAqrJTE=; | |
b=iVvbtVsyObH7j+6aNOvOyPrrpk6WhBl437R29tVzMgUa7hJ5u3hkJJur4gD+4UcvIJ | |
4bFMrSi0cr9zvNhXIbtwNsnXdj6tQvsHTSJnKFGrFKrWuH8ByYLahLA977lv5jc0qgDT | |
S+rIw7wCMuQjLJSn5FqtjmSRI+JaMroJtpg2o6IZbwRdJu7CfQz6jXpSpL7la97s7rt9 | |
oskCrD8zZGSz+uMIp0X8qKzNeZ+tH/eQm8jim2w0H9xHf12/tDDnYm4n4JxAPIN6CtQy | |
89EQP/z7GX7G3dfmmBtydfHGXGsFBkZueZiolfiQVIgpqNZWFhSViiHdHdy0AJXRlKQ6 | |
ROgQ== | |
X-Received: | by 10.180.37.201 with SMTP id a9mr28132647wik.70.1445944154570; |
Tue, 27 Oct 2015 04:09:14 -0700 (PDT) | |
Date: | Tue, 27 Oct 2015 12:09:09 +0100 |
From: | "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] home/bkerin/geometry_module branch |
Message-Id: | <20151027120909.618b904cb2ca498214094247@gmail.com> |
In-Reply-To: | <CACwWb3Cwwe1kVwH62QOgg1yz7xwOfjW6mdiuikDJ9_iNr+8PAw@mail.gmail.com> |
References: | <CAC4O8c_0jg9_VbT82H3P7uNi90zg=7O1Bya3ZwPW1MybP-yO9Q AT mail DOT gmail DOT com> |
<CACwWb3CcWkRz9Wnz+tFKTc+PkP8sZEEJ8kJX=08gM28P4RrE7w AT mail DOT gmail DOT com> | |
<alpine DOT DEB DOT 2 DOT 00 DOT 1510271032140 DOT 7137 AT igor2priv> | |
<CACwWb3Cwwe1kVwH62QOgg1yz7xwOfjW6mdiuikDJ9_iNr+8PAw AT mail DOT gmail DOT com> | |
X-Mailer: | Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) |
Mime-Version: | 1.0 |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
In short C++ objects are called "class" and may be used almost or exactly as a C struct. Largest improvement with C++ are variables within an object which fulfil similar functionality to a C struct may be private and only accessed with functions belonging to object. Polyformism may also be an improvement there may for example be a function to move an object with different implementations depending for different object types. Polymorfism in C++ are however far as I understand not handled as in other object oriented languages, it is easy to screw things up. I don't like C++ either but it is an improvement. I like ADA better. Nicklas Karlsson > I remember there was a movement to transform PCB to C++. I guess DJ made > PCB ready to be compiled by a C++ compiler. DJ? > > Personally, I don't like C++, but I think C++ is a better tool to code a > PCB editor application than C. > > Lev > > On Tue, Oct 27, 2015 at 10:36 AM, <gedau AT igor2 DOT repo DOT hu> wrote: > > > > > > > On Tue, 27 Oct 2015, Levente (leventelist AT gmail DOT com) [via > > geda-user AT delorie DOT com] wrote: > > > > Okay, I don't want to start another war here. I was browsing the manual of > >> the CGAL library, and I think it has some nice features that can bring lot > >> of benefit for us. So I'd go for CGAL. > >> > >> Just my two cents. > >> > > > > I don't want to join another war here either, but CGAL is not all benefit > > but has a cost as well. Sloccount on include/ in CGAL says 578k lines of > > code. It's more than 5 times bigger than the whole PCB src/, including the > > hids and everything. And it's all C++, while PCB code that needs these > > calculations are mostly in C.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |