[fpc-pascal] mode switch madness

Sven Barth pascaldragon at googlemail.com
Sun Apr 14 19:29:20 CEST 2019


Am 14.04.2019 um 17:03 schrieb Ryan Joseph:
>
>> On Apr 13, 2019, at 10:07 PM, Ben Grasset <operator97 at gmail.com> wrote:
>>
>> E.G, I sincerely doubt that anybody has *ever* thought, "man, I sure am glad that {$mode ObjFPC} does not allowed advanced records. It would be specifically bad if it did!" because it just doesn't matter if they weren't using advanced records to start with. It's just a lot of minor rules that nobody can really explain but that tend to add up in relatively annoying ways.
>>
> I like what Jonas did for the ObjC mode switch where he named them with versions. Maybe a {$mode objfpc2} one day.
My idea was to maybe add a mode ObjFPCExt or ObjFPCAdv which is quite a 
bit less conservative and might break backwards compatibility a bit more 
often when new features are added.

Regards,
Sven



More information about the fpc-pascal mailing list