TIP: Click on subject to list as thread! ANSI
echo: pascal
to: CHRISTIAN IVERSEN
from: SAM IZZO
date: 1998-04-17 17:05:00
subject: Re: You grasser!

 -=> Quoting Christian Iversen to Brian McCloud <=-
 BM> I hope you realize this record is 2560 bytes long...
 CI> No, It's 20 bytes long.
 CI> If all strings are empty of course.
 CI> Pascal only saves needed info.
err no sorry, it doesn't.  if that happened, then how could you make a string
that was initially 5 bytes in length, 10 bytes?  you'd have to rearrange all
the memory in your computer, or deallocate your 5 byte string and reallocate
another string which was 10 bytes.  if you don't specify a string length when
declaring strings, most (all?) Pascal compilers assume a string length of 255
characters (with the zeroth byte being the string length).  therefore, if you
only need strings of up to, say, 10 characters, you should declare your 
strings
as type string[10];
sam
... Tag line thievery ... On the next Geraldo!
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.