[fpc-pascal] Compiler Mode?

Sven Barth pascaldragon at googlemail.com
Wed Feb 24 17:22:17 CET 2016


Am 24.02.2016 13:10 schrieb "Maciej Izak" <hnb.code at gmail.com>:
>
> 2016-02-24 12:48 GMT+01:00 Anthony Walter <sysrpl at gmail.com>:
>>
>> On another forum a Free Pascal user opined that {$MODE DELPHI} is wrong
and should not be used other than for people or companies trying to convert
Delphi code to Free Pascal.
>>
>> What's the official position on this point?
>
>
> Delphi is IMO the best available mode. ObjPas is unusable for me for many
reasons, few of them:
>
> * Different parsing of comments

Which is better in ObjFPC as it allows nesting of comments.

> * Unlogical approach for static; modifier (I can't use static methods as
callback in objfpc... the main reason of introducing static in Delphi is
callback for api...)

AFAIK that's a general problem we currently have with static and not just
restricted to mode ObjFPC. At least in my opinion the assignment of such
methods to normal procedure variables should be possible no matter which
mode is selected.

> * I cant use the same name for class var and for parameter in method
http://bugs.freepascal.org/view.php?id=24963

That's by design.

> * generic and specialize keyword hell in extensively used generics...

On the other hand complex inline specialization expressions work in mode
ObjFPC, while they don't in mode Delphi...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160224/fa24648b/attachment.html>


More information about the fpc-pascal mailing list