TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Patrick Spence
from: Allan Mertner
date: 1996-10-28 16:33:38
subject: Re: Turbo Pascal to OS/2 Pas

Hej Patrick!

Wednesday October 23 1996, Patrick Spence writes to Allan Mertner:

 PS> While trying to port a program from dos to os/2, I ran across this
 PS> little anomoly... in Turbopascal 7.0 a set of uflags (as follows) is
 PS> 3 bytes in size. In VP 1.1 it comes out to 4 bytes...

 PS> Regardless of which one is doing what, do you know of a method I can use
 PS> to force VP to use 3 bytes for the size?

Yes, sets with this number of elements are 3 bytes if the definition is
compiled in the {$Delphi-} state - as it is Borland Pascal.  In Delphi, 3
byte sets are 4 bytes in size and VP/2 also makes these sets 4 bytes in the
{$Delphi+} state.

 PS> byte, or is starting with different assumptions..  I really don't want to
 PS> have different data files between the versions, so would like an easy work
 PS> around if you know one...  Thanks..

Compile the type definition in the Delphi- state - and it'll work.

Yours,
Allan

--- GoldED 2.50+
* Origin: VP/2 on the web: http://www.fprint.co.uk/vpascal (2:254/283)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 254/283 259 442/403 255/1 440/4 141/209 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.