delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2021/03/02/11:41:25

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
Date: Tue, 2 Mar 2021 17:41:18 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "karl AT aspodata DOT se [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
Subject: Re: [geda-help] Re: file format things
In-Reply-To: <20210302160309.76DE982475BD@turkos.aspodata.se>
Message-ID: <alpine.DEB.2.21.2103021739350.1159@nimbus>
References: <xnh7nchcyj DOT fsf AT envy DOT delorie DOT com> <4b1d3d85-7f93-9eac-c4eb-9f84f2a47e61 AT bitflipper DOT ca> <CAMw9acBn7xNo5jvrvS6Dof6JtYgOOLVKJwFFTu93S+CoPszjHw AT mail DOT gmail DOT com> <20210225212042 DOT 16269 DOT qmail AT stuge DOT se> <20210226140333 DOT 7D5E78248737 AT turkos DOT aspodata DOT se>
<alpine DOT DEB DOT 2 DOT 21 DOT 2102261538470 DOT 17675 AT nimbus> <20210302140448 DOT 4E18D82475BD AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2103021539480 DOT 9780 AT nimbus> <20210302160309 DOT 76DE982475BD AT turkos DOT aspodata DOT se>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 2 Mar 2021, karl AT aspodata DOT se [via geda-help AT delorie DOT com] wrote:
> Roland Lutz:
>> The solution I favor would be to differentiate between "line width 
>> zero" which, as you explained, means the thinnest line width supported 
>> by the output device (or "no line" in the case of a filled closed 
>> path), and "there's no line width set, use the default width".
>
> The usual solution to "use default", sentinels etc. is to use an illegal 
> value, like -1, NULL, '\0', etc. For a line width, -1 would be suitable. 
> You "cannot" use zero, since mathematically, a line do have a width of 
> zero.

Sounds sensible.  This is still technically a file format change, though, 
since older schematics would otherwise be interpreted as having infinitely 
thin lines.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019