🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #326

Re: maly problemik...

#326
From: Piotr|||
Date: Thu, 31 Dec 1998 13:04
20 lines
1555 bytes
Marcin Rutkowski napisał(a) w wiadomości:
>Ale sie uparles !!! I po co Ci to ???
>Obcinasz 2 bajty do dwoch - od kiedy to typ BYTE/CHAR ma dwa bajty ???

Ten wątek rośnie jak na pl.soc.polityka ... :-)

Wynik byte+1 _ma_ dwa bajty. Dopiero char() lub byte() robi z tego 1 bajt.
Spróbuj :

VAR
 w :word;
 b :byte;
BEGIN
 b:=255;
 w:=b +1; writeln(w);
 w:=byte(b +1); writeln(w);
END.

Pozdrawiam.
Piotr.
Technical Details
Message-ID: <76fshr$rr4$1@polonez.man.lodz.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!polsl.gliwice.pl!news.man.poznan.pl!news.man.lodz.pl!not-for-mail
References: <sbeh2.42854$O1.3168756@news.tpnet.pl> <368612b4.5469610@news.vogel.pl> <368a4473.16668716@news.torun.pdi.net> <36873be3.1947711@news.vogel.pl> <368dc4d9.1184001@news.torun.pdi.net> <368996c4.6865017@news.vogel.pl> <76amcd$g0o$1@korweta.task.gda.pl> <3689f1bb.893896@news.torun.pdi.net> <76asv5$ac6$1@polonez.man.lodz.pl> <368a12df.407004@news.torun.pdi.net> <76chi6$3i3$1@korweta.task.gda.pl> <368f4164.1716131@news.torun.pdi.net> <76dif1$9td$1@polonez.man.lodz.pl> <368d795d.6549947@news.torun.pdi.net> <76fphs$n7m$1@korweta.task.gda.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!polsl.gliwice.pl!news.man.poznan.pl!news.man.lodz.pl!not-for-mail
From: "Piotr|||" <piostrus@friko5.onet.pl>
Newsgroups: pl.comp.lang.pascal
Subject: Re: maly problemik...
Date: Thu, 31 Dec 1998 14:04:20 +0100
Lines: 22
Message-ID: <76fshr$rr4$1@polonez.man.lodz.pl>
References: <sbeh2.42854$O1.3168756@news.tpnet.pl> <368612b4.5469610@news.vogel.pl> <368a4473.16668716@news.torun.pdi.net> <36873be3.1947711@news.vogel.pl> <368dc4d9.1184001@news.torun.pdi.net> <368996c4.6865017@news.vogel.pl> <76amcd$g0o$1@korweta.task.gda.pl> <3689f1bb.893896@news.torun.pdi.net> <76asv5$ac6$1@polonez.man.lodz.pl> <368a12df.407004@news.torun.pdi.net> <76chi6$3i3$1@korweta.task.gda.pl> <368f4164.1716131@news.torun.pdi.net> <76dif1$9td$1@polonez.man.lodz.pl> <368d795d.6549947@news.torun.pdi.net> <76fphs$n7m$1@korweta.task.gda.pl>
NNTP-Posting-Host: tbd27.uw.lodz.pl
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit