Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pucc-i
Path: utzoo!watmath!clyde!floyd!harpo!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:Pucc-I:ags
From: ags@pucc-i (Seaman)
Newsgroups: net.micro
Subject: Re: Turbo Pascal bug
Message-ID: <238@pucc-i>
Date: Thu, 22-Mar-84 13:03:05 EST
Article-I.D.: pucc-i.238
Posted: Thu Mar 22 13:03:05 1984
Date-Received: Fri, 23-Mar-84 21:28:30 EST
References: <17535@sri-arpa.UUCP>
Organization: Purdue University Computing Center
Lines: 26

>  In response to the person who thought the reported bug was wrong, 
>  because it uses an assignment to a singly subscripted component of
>  a doubly subscripted array (i.e. an array of arrays of char):
>  
>  Wrongo!  A quoted string is the same as a packed array of char in Jensen
>  & Wirth standard Pascal, so assigning a quoted string to one component
>  of an array, each component of which is an array of characters, is 
>  perfectly legal and reasonable.  If Turbo doesn't do it right, it's 
>  a bug.

In J&W Pascal, there is a world of difference between an "array of char"
and a "packed array of char".  In particular, string assignments are
supposed to be legal ONLY with PACKED arrays, and ONLY if the lower bound
is 1.

Therefore the example that was posted earlier was not legal J&W Pascal, 
since it involved assigning a character string to an [unpacked] array of 
char.  I am not familiar with Turbo Pascal.  It could be that the distinction
is ignored in that implementation.
-- 

Dave Seaman
..!pur-ee!pucc-i:ags

"Against people who give vent to their loquacity 
by extraneous bombastic circumlocution."