🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #9599

Re: operacje na bitach

#9599
From: Hilarion
Date: Wed, 26 Oct 2005 13:00
19 lines
1501 bytes
Hilarion wrote:
>> A co wychodzi z poniższego?
>>
>> public static byte bar(int x)
>> {
>>    return ~((byte)x);
>> }


"Paweł" <root@[127.0.0.1]> napisał:
> błąd :)
> error CS0029: Cannot implicitly convert type `int' to `byte'


To potwierdza moje obawy, że operator negacji nie jest zdefiniowany
dla typu "byte" (jego użycie na tym typie powoduje niejawną
konwersję do "int"). Szkoda.

Hilarion 
Technical Details
Message-ID: <djo0kt$pcs$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <djkvmh$ugp$1@news.onet.pl> <djl2uc$bp5$1@atlantis.news.tpi.pl> <djl7bg$u30$1@news.onet.pl> <djl898$2pu$1@news.onet.pl> <djlgum$pf0$1@achot.icm.edu.pl> <djli8q$qrs$1@achot.icm.edu.pl> <djlv6s$sq0$1@news.onet.pl> <djm43s$fsv$1@achot.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: "Hilarion" <hilarion@SPAM.op.SMIECI.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: operacje na bitach
Date: Wed, 26 Oct 2005 15:00:59 +0200
Organization: Onet.pl
Lines: 20
Message-ID: <djo0kt$pcs$1@news.onet.pl>
References: <djkvmh$ugp$1@news.onet.pl> <djl2uc$bp5$1@atlantis.news.tpi.pl> <djl7bg$u30$1@news.onet.pl> <djl898$2pu$1@news.onet.pl> <djlgum$pf0$1@achot.icm.edu.pl> <djli8q$qrs$1@achot.icm.edu.pl> <djlv6s$sq0$1@news.onet.pl> <djm43s$fsv$1@achot.icm.edu.pl>
NNTP-Posting-Host: fw.elfin.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1130333661 26012 213.25.37.46 (26 Oct 2005 13:34:21 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Wed, 26 Oct 2005 13:34:21 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-Sender: 9KSiimrLScNqWiVTMiVMJQ==
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-Priority: 3
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit