GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #4691

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Marco van de Voort
Subject: PACKED ARRAYS (was Re: Has class become a reserved word?)
Date: 15 Mar 2001, 01:05:40

> 
> That is the PACKED ARRAY of 0..255 occupied 4 bytes under the old version 
> and now occupies 16 bytes. Whilst I clearlyu have a workaround by
> switching from 0..255 to byte, that behaviour doesn't seem right to me.

0..255 is an enumeration, of the base type, which is a 32-bits integer on a
32-bit computer/compiler (at least with my limited knowledge of the
standard)

An array of 32-bits values don't need packing, so both are the same

I wouldn't consider this a bug, I think it is a TP incompability however,
though I haven't tested it under TP.

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
David James PACKED ARRAYS (was Re: Has class become a reserved word?) 14 Mar 2001, 22:54:45

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).