Hello Merlin,
yes, you are absolutely right. In case of strings Delphi now knows two types of strings, shortstrings and standard strings. Standard strings now have 2bytes for each char to be conform with new standards. Within Delphi this is don't care. But with moving strings between Delphi and 8/16bit Pascals like Turbo Pascal and AVRco this is a problem. So Delphi still knows the type shortstring which has still one length byte and the total size is 256 chars. It is also possible to implicitely define a shortstring variable with var st : string[56]. Giving a string length here it forces this var to be a short string.
The Delphi short strings are compatible with the AVRco strings.
btw.
In Delphi a char has still 8bits. But there is also a 2byte char = WideChar
rolf
yes, you are absolutely right. In case of strings Delphi now knows two types of strings, shortstrings and standard strings. Standard strings now have 2bytes for each char to be conform with new standards. Within Delphi this is don't care. But with moving strings between Delphi and 8/16bit Pascals like Turbo Pascal and AVRco this is a problem. So Delphi still knows the type shortstring which has still one length byte and the total size is 256 chars. It is also possible to implicitely define a shortstring variable with var st : string[56]. Giving a string length here it forces this var to be a short string.
The Delphi short strings are compatible with the AVRco strings.
btw.
In Delphi a char has still 8bits. But there is also a 2byte char = WideChar
rolf