Board.KolibriOS.org

Official KolibriOS board
It is currently Mon Sep 16, 2019 11:44 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 49 posts ]  Go to page Previous 1 2 3 4
Author Message
PostPosted: Wed Oct 05, 2016 8:56 pm 
Offline

Joined: Sun Oct 30, 2011 6:43 pm
Posts: 1499
//DG wrote:
В итоге будет полный диалект Delphi
А ведь не совсем. В документации пишут, что, например, перегрузка функций не допускается.
Spoiler: Show
Quote:
D.3 Delphi mode
This mode is selected by the $MODE DELPHI switch. It tries to emulate, as closely as possible, the
behavior of Delphi 4 till Delphi 7. On the command line, this mode is selected by the -Mdelpih
switch.
1. You cannot use the address operator to assign procedural variables.
2. A forward declaration does not have to be repeated exactly the same by the implementation
of a function/procedure. In particular, you can omit the parameters when implementing the
function or procedure.
3. Ansistrings are default, this means that $MODE DELPHI implies an implicit {$H ON}.
4. Overloading of functions is not allowed.
5. Inline code is allowed: There is no need to enable it with the {$INLINE} directive.
6. Nested comments are not allowed.
7. The Objpas unit is loaded right after the system unit. One of the consequences of this is that
the type Integer is redefined as Longint.
8. Parameters in class methods can have the same names as class properties (although it is bad
programming practice).


Top
   
PostPosted: Wed Oct 05, 2016 9:03 pm 
Offline

Joined: Tue Oct 04, 2016 10:05 pm
Posts: 44
0CodErr wrote:
//DG wrote:
В итоге будет полный диалект Delphi
А ведь не совсем. В документации пишут, что, например, перегрузка функций не допускается.

Врут, негодяи :D Работает перегрузка, это, скорее всего, старая дока. Там есть документ "каких из фич Дельфи у нас еще нет", и там совсем немного позиций, в основном, редких. Самый большой их косяк - дебаггер.


Top
   
PostPosted: Wed Oct 05, 2016 9:20 pm 
Offline

Joined: Sun Oct 30, 2011 6:43 pm
Posts: 1499
//DG, ну хорошо, если врут :)
А дока вот эта
Programmer’s Guide for Free Pascal, Version 3.0.0
Document version 3.0
November 2015


Top
   
PostPosted: Wed Oct 05, 2016 10:03 pm 
Offline

Joined: Tue Oct 04, 2016 10:05 pm
Posts: 44
Ничего не знаю, у меня компилируется. Да и недавно один наш рабочий проект с миллионом строк на Дельфи компилировал FPCшкой, там перегруженных функций, в том числе объектных - хоть чем ешь.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 49 posts ]  Go to page Previous 1 2 3 4

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited