[fpc-pascal] Array of Char

Carsten Bager carsten at beas.dk
Wed Aug 17 12:30:53 CEST 2005


We are moving from another Pascal compiler where this is 
allowed.
----------------------
Type
  txt_typ=packed array[0..1] of char;

Const
  txt1:txt_typ=('12');
--------------------------

Is there a way around this without having to write
--------
  txt1:txt_typ=('1','2');
--------


Another thing, with the old compiler we can write

Type
  A_typ=array[0..3] of integer;
Var
 A1,A2:A_typ;

Begin
  If A1=A2 then
End;

I have never could understand when this is allowed
A1:=A2;

Why this is not allowed
If A1=A2 then

in most Pascal compilers. 

Regards Carsten


--


Carsten Bager
Bøvlingbjerg El-automatik
Brørupvænget 10
7650 Bøvlingbjerg
Tlf. +4597885222 Fax +4597885434
www.beas.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20050817/803b4ebd/attachment.html>
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  Beas_Logo_1cm.bmp
     Date:  4 May 2004, 12:14
     Size:  15720 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Beas_Logo_1cm.bmp
Type: application/octet-stream
Size: 15720 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20050817/803b4ebd/attachment.obj>


More information about the fpc-pascal mailing list