Re: [fpc-pascal] string vs char

2021-10-15 Thread Ralf Quint via fpc-pascal

On 10/15/2021 3:16 PM, Ched via fpc-pascal wrote:

Well, well, understand.


OTOH, declaring a string of length 1 is sort of futile -- it uses
two bytes where a plain char declaration takes just one byte.


Not so futile as a string can be empty, not a char ! 


Well, if you don't like it being called "futile, just call it "nonsense" 
instead (in 99.99% of all possible use cases)


Ralf



--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] string vs char

2021-10-15 Thread Ched via fpc-pascal

Well, well, understand.


OTOH, declaring a string of length 1 is sort of futile -- it uses
two bytes where a plain char declaration takes just one byte.


Not so futile as a string can be empty, not a char !

Regards, Dennis, Ched'
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal