[fpc-pascal] Is it possible to redefine FreePascal types?
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Nov 22 10:03:51 CET 2012
On 22 Nov 2012, at 02:00, Kenneth Cochran wrote:
> On Wed, Nov 21, 2012 at 5:34 PM, Graeme Geldenhuys
> <graeme at geldenhuys.co.uk>wrote:
>
>> That is an incorrect assumptions. The compiler will happily accept
>> both
>> types without needing typecasting.
>
> I stand corrected. I assumed it behaved the same as Delphi in this
> respect.
> It doesn't, not even when Delphi mode is enabled.
Delphi behaves like FPC, at least Kylix 3 does. Afaik the only use for
"type newstring = type string;" is so that you can declare overloaded
routines that are differentiated based on those two types.
Jonas
More information about the fpc-pascal
mailing list