🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309999

Re: Czy char ze znakiem to dobre rozwiązanie?

#309999
From: Queequeg
Date: Mon, 16 Dec 2019 17:41
13 lines
1356 bytes
Borneq <borneq@antyspam.hidden.pl> wrote:

> signed char utrudnia porównywanie, bo #128 <#0
> zwykle lubię działać na bajtach, czyli unsigned char a to wymaga 
> rzutowania. Co stało za wyborem by char używać ze znakiem?

Podejrzewam, że chęć zachowania konsekwencji. Taki int np. jest już 
signed.

gcc ma flagę -funsigned-char. Możesz użyć.

-- 
https://www.youtube.com/watch?v=9lSzL1DqQn0
Technical Details
Message-ID: <16420364-dfef-4cfd-a273-c980a8b8b1a9@trust.no1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
References: <5df684b7$0$17343$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
From: queequeg@trust.no1 (Queequeg)
Newsgroups: pl.comp.lang.c
Subject: Re: Czy char ze znakiem to dobre rozwiązanie?
Date: Mon, 16 Dec 2019 17:41:47 +0000 (UTC)
Organization: news.chmurka.net
Message-ID: <16420364-dfef-4cfd-a273-c980a8b8b1a9@trust.no1>
References: <5df684b7$0$17343$65785112@news.neostrada.pl>
NNTP-Posting-Host: pi.v.chmurka.net
Mime-Version: 1.0
Injection-Date: Mon, 16 Dec 2019 17:41:47 +0000 (UTC)
Injection-Info: vps.chmurka.net; posting-account="queequeg"; posting-host="pi.v.chmurka.net:172.24.44.20"; logging-data="15603"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.57-v7+ (armv7l))
Cancel-Lock: sha1:wD/vC5fu0zMyn4EXQehY3VkqBy8=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit