[fpc-pascal] Re: String type compatibility
pascaldragon at googlemail.com
Wed Apr 3 14:47:37 CEST 2013
Am 03.04.2013 12:11, schrieb Mark Morgan Lloyd:
> leledumbo wrote:
>>> BTW, recently there are many discussions about language features, now I
>> would like to ask one question, why the following is not supported in
>> procedure SomeThing(AParam: array[0..10] of Integer);
>> procedure SomeThing(Aparam: string);
>> But you have to define a custom type first?
>> Delphi compatibility and something else (should be documented on the
>> but I forgot on which release).
> I wonder if I could ask a related question. I was looking at some
> parser code yesterday that I wrote years ago, and that still compiles
> with TP5, TopSpeed and so on. It's got a couple of underlying
> string declarations: is there a 16-bit Unicode equivalent which
> uses this syntax?
No, because all newer string types are not restricted in size (if you
don't consider 2GB as a restriction :) ).
More information about the fpc-pascal