[Info-vax] VMS process communication

Dave Froble davef at tsoft-inc.com
Mon Mar 13 15:17:41 EDT 2023


On 3/13/2023 10:19 AM, Arne Vajhøj wrote:
> On 3/13/2023 10:01 AM, Simon Clubley wrote:
>> On 2023-03-13, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>> On 3/13/2023 9:32 AM, Simon Clubley wrote:
>>>>
>>>> Even better is to use uintXX_t unless you really want a signed integer. :-)
>>>>
>>>> A big mistake languages made (IMHO) was to make their integers signed
>>>> by default, instead of you needing to ask for a signed integer if you
>>>> really needed one.
>>>
>>> That is not really C specific.
>>
>> Notice I didn't say C, but "languages". :-)
>>
>> I consider it a general design flaw in languages, probably based on the
>> need to mirror underlying early architecture and then it just became
>> established as the default.
>
> I consider it rather natural to have integers signed by default.

The way most/all people consider math, numbers can be either positive or 
negative.  Yes, "natural".  Computer languages were developed using this 
concept.  While unsigned numbers are useful, they aren't something people 
normally consider.  Not sure where Simon is coming from with his assertions.

> Except byte that I like unsigned.
>
> I really like C# where short, int and long are signed while
> byte is unsigned - and one can pick ushort, uint, ulong and
> sbyte when one want the other way.

The problem with all of those is they are vague, and are defined differently on 
different HW and software.  Precision is to be desired.


-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list