Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-06

FPC docs Delphi mode

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

From the FPC docs of the Delphi mode in the programmers guide appendix D:

A forward declaration must not be repeated exactly the same by the implementation of a function/procedure. In particular, you not omit the parameters when implementing the function or procedure.

Meaning? ;)

And I think it be noted that parameters and calling convention can be omitted in delphi mode and must be copied in mode objfpc.

Should I create a bug report?

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
And I think it be noted that parameters and calling convention can be omitted in delphi mode and must be copied in mode objfpc.

And the reason I much prefer the objfpc mode! delphi mode is just sloppy regarding syntax and some coding rules. :-)

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 7 lines
Mattias Gaertner wrote: > > And I think it be noted that parameters and calling convention can > be omitted in delphi mode and must be copied in mode objfpc. And the reason I much prefer the objfpc mode! delphi mode is just sloppy regarding syntax and some coding rules. :-)

Of course the objfpc mode is better. Otherwise it would not exist.

The parameters are needed to identify overloaded procs. Why is copying the calling convention needed? They are always redundant. Some modifiers like 'virtual' are not copied.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner: From the FPC docs of the Delphi mode in the programmers guide appendix D: A forward…
Mattias Gaertner wrote 12 lines
From the FPC docs of the Delphi mode in the programmers guide appendix D: A forward declaration must not be repeated exactly the same by the implementation of a function/procedure. In particular, you not omit the parameters when implementing the function or procedure. Meaning? ;) And I think it be noted that parameters and calling convention can be omitted in delphi mode and must be copied in mode objfpc. Should I create a bug report?

Please do.

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 20 lines
On Tue, 16 Jun 2009, Mattias Gaertner wrote: > From the FPC docs of the Delphi mode in the programmers guide > appendix D: > > A forward declaration must not be repeated exactly the same by the > implementation of a function/procedure. In particular, you not omit > the parameters when implementing the function or procedure. > > > Meaning? ;) > > And I think it be noted that parameters and calling convention can > be omitted in delphi mode and must be copied in mode objfpc. > > Should I create a bug report? Please do.

http://bugs.freepascal.org/view.php?id=13993

Mattias

Reply by email