Deutsch   English   Français   Italiano  
<66c397f6$0$716$14726298@news.sunsite.dk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 19 Aug 2024 15:07:36 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: New VSI post on Youtube
Newsgroups: comp.os.vms
References: <v9ehs5$3mqbj$1@dont-email.me> <v9idff$f9k4$1@dont-email.me>
 <v9iqln$hrs3$1@dont-email.me> <v9iro6$fql6$1@dont-email.me>
 <66bcf876$0$717$14726298@news.sunsite.dk>
 <66bcfbe3$0$717$14726298@news.sunsite.dk> <v9kske$uqhh$2@dont-email.me>
 <va04hl$2viks$2@dont-email.me>
Content-Language: en-US
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
In-Reply-To: <va04hl$2viks$2@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 22
Message-ID: <66c397f6$0$716$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 5d1a6636.news.sunsite.dk
X-Trace: 1724094454 news.sunsite.dk 716 arne@vajhoej.dk/68.14.27.188:50140
X-Complaints-To: staff@sunsite.dk
Bytes: 2052

On 8/19/2024 2:56 PM, chrisq wrote:
> On 8/15/24 13:34, Simon Clubley wrote:
>> To extend this, I also know the difference between signed and unsigned
>> variables and I have a default-unsigned approach unless I absolutely
>> _need_ a signed variable.
>>
>> Unfortunately, a lot of the material out there doesn't seem to understand
>> that designing a program is about modelling a real-world problem and that
>> it isn't OK to just use a signed integer to store an unsigned value.
> 
>   Absolutely, must have come from an assembler background, where the use 
> of signed branches and arithmetic, can get you into serious trouble.
> The standard C library, of course, tends to use signed variables for
> everything, a gross error that has never been fixed...

At least the C people can define an unsigned variable.

Java does not have unsigned data types at all. OK - higher level
language and all that. But still a PITA.

Arne