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-transfer-encoding; | |
bh=UkIyLJYSUMpiy4sUODbftEnRXpQQhYkXrjrJCxEuWw8=; | |
b=F7vK7AP9XKEGCpEjwAD5ws5NxMxxXVM/MRXcdx2ZZyS9CHfqBg9orRL5twpFXeXq5u | |
o0f86BVrzaD3/g+/q8Ve8CHV4DR2PQuHcd6TwLnBURpxObaYuFPJqPD1tHFc6WZ0m8u7 | |
xoRemCwArR8FHhjkdgzqDBcZVt6v85uS/Pmn97EJvQ06hrzyQpLvzikoZlBUu4+pJ4ga | |
bxa/4PXyCowUVKpEyNvtZcL1uNGMpS13V2aGLBpYmiN5JuhkGYjJYkLnqKM21U3uh3yb | |
E+LnIxdsgUZ8ETxTsMulOHaxfwVnO/gqLLzHl9j2HYbcuHdTwYuAK3Ek7Zg2MlMnHReA | |
G4jw== | |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=1e100.net; s=20130820; | |
h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to | |
:references:mime-version:content-transfer-encoding; | |
bh=UkIyLJYSUMpiy4sUODbftEnRXpQQhYkXrjrJCxEuWw8=; | |
b=AgNg4gr5yA5QDenjwZn+uzyuI7CxK53x6xX/P3PYsE7zf+0nOVkTB1Jw0OXPeBz94P | |
irdhTHJ4gHXz/7oFKctYpspuVfgGoGVfnQXX8lvgbsJwhwYDwCpvLEUy/y1G/kyR08mY | |
Ce6Pn7WF9IRB1Z0yKOBKO8dE8VrFZFO0uk6Su6w7EhO7v46IA0lvqncnbsbrG7UQ0lc7 | |
tTImgKG1+knk5Cdyfuq8BxlF1zJ+MOt6TswDt8wJ4wVVXX3x1bqdaok0y/rVuFA8wLEd | |
TluJ7DuvO2kiZQFE5cZq9SsSyarJDqNteJ/pQVqZtHpN/bdCyRSaGnMwE2mDVvFWtTnS | |
otyw== | |
X-Gm-Message-State: | AOPr4FUSOsTWb1YfXOQ8/yY1VqusA302duOVvWxRvfMUetpw2B1qHcC5ZYJiSTidwIdong== |
X-Received: | by 10.28.56.4 with SMTP id f4mr9795413wma.70.1463261059212; |
Sat, 14 May 2016 14:24:19 -0700 (PDT) | |
Date: | Sat, 14 May 2016 23:24:17 +0200 |
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] Re: gschem annoyances (C++) --> Gobject |
Message-Id: | <20160514232417.1b8880c68e5c38f7a3069cc3@gmail.com> |
In-Reply-To: | <CAC4O8c_kRySdpi9O9WxZyRRkre=ic_kr5FA7eEnuy2d-hHqEXA@mail.gmail.com> |
References: | <154a7fb8d8c-2a04-17506 AT webprd-a31 DOT mail DOT aol DOT com> |
<20160513081037 DOT GA23474 AT visitor2 DOT iram DOT es> | |
<5735ACC6 DOT 30105 AT iee DOT org> | |
<alpine DOT DEB DOT 2 DOT 00 DOT 1605140519090 DOT 28818 AT igor2priv> | |
<20160514094703 DOT fc95ba64dab2c53b068f260c AT gmail DOT com> | |
<201605141432 DOT u4EEWZ9s018507 AT envy DOT delorie DOT com> | |
<CAC4O8c_kRySdpi9O9WxZyRRkre=ic_kr5FA7eEnuy2d-hHqEXA 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 |
> >> C/C++ lack good type checking which is a real disadvantage. > > > > Well, C maybe, C++ has great support for type checking. You just have > > to write type-specific code. > > gobject has fine type checking mechanism pcb just doesn't use it. ... Never used gobject but at a first glance it looks more like a workaround for missing functionality in programming language. With type checking I mean for example these variables: enum {red, green, blue} color; enum {right, middle, left} alignment; ssize_t fd; typedef int angle_type; angle_type angle; Unless their is an explicit cast. Assigning a color to an assignment variable or the opposite should trigger an error at compile time. Assigning an angle to a size or should trigger an error at compile time ... It works for struct and pointer for struct but not simple variables. It should not be to hard to fix in compiler and I can't come up with any real disadvantages. Nicklas Karlsson
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |