1
\$\begingroup\$

For a , , related question: Pascal / Delphi / Pascal Script tags

For a discussion about how the pascal related tags should be organized (as synonymous, for example), please see (pascal) vs (free-pascal) vs (delphi) vs (delphi-xe) vs (object-pascal)


What about a tag?

Object Free Pascal (as in Free Pascal compiler), as far as I know, is given by the directive:

{$mode objfpc}{$H+}

The compiler supports Delphi as well, but not completely:

{$mode DELPHI}

For other Free Pascal modes, please see the documentation.

\$\endgroup\$
14
  • \$\begingroup\$ How many questions is there that would benefit from this tag? \$\endgroup\$
    – svick
    Mar 22 '15 at 20:27
  • \$\begingroup\$ I don't know. I don't even know how to count them, if any. Is there some chance that only me have made a Free Pascal related question? codereview.stackexchange.com/questions/75653/… \$\endgroup\$
    – cpicanco
    Mar 23 '15 at 7:43
  • \$\begingroup\$ I have posted a question here as well: forum.lazarus.freepascal.org/index.php/topic,27821.0.html \$\endgroup\$
    – cpicanco
    Mar 23 '15 at 7:44
  • \$\begingroup\$ Searching for Free Pascal lead me to one other question: codereview.stackexchange.com/q/38621/2041. \$\endgroup\$
    – svick
    Mar 23 '15 at 12:46
  • \$\begingroup\$ I think that the less the number of questions, the better can be the moderation. Imagine if you already had a lot of questions... What a waste, hum? Better starts now. \$\endgroup\$
    – cpicanco
    Mar 23 '15 at 20:02
  • 3
    \$\begingroup\$ Could someone mind explaining the difference between "free Pascal" and the other existing tags? \$\endgroup\$
    – nhgrif
    Mar 23 '15 at 21:55
  • \$\begingroup\$ Please, make me know if I need to update the question. \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 14:24
  • \$\begingroup\$ ~$ fpc -h Free Pascal Compiler version 2.6.4 [2014/04/20] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others As you can see, It is Free Pascal. \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 14:28
  • \$\begingroup\$ Some differences here freepascal.org/port.var \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 14:37
  • \$\begingroup\$ Good reading en.wikipedia.org/wiki/Pascal_%28programming_language%29, at some extent, if you are thinking about parsimonious, Delphi tag should not exist. It is know as Pascal as well, but it uses a proprietary compiler. \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 14:45
  • \$\begingroup\$ a minor difference that came into my mind is that in free pascal objfpc directive you must to explicitly use the @ symbol to point a method to an event (ex: OnSomeEvent := @MyMethod;). For delphi it is not needed. A major difference is the compiler it self, i think... People how use Free Pascal tends to use Lazarus IDE as well. People how use Delphi tends to use the most recent (or some proprietary) Embarcadero IDE, or Turbo Delphi, or Delphi 7. \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 14:47
  • \$\begingroup\$ stackoverflow.com/questions/2762611/… some people talking about differences between delphi and lazarus \$\endgroup\$
    – cpicanco
    Mar 24 '15 at 20:09
  • \$\begingroup\$ Possible duplicate of (pascal) vs (free-pascal) vs (delphi) vs (delphi-xe) vs (object-pascal) \$\endgroup\$ Nov 18 '15 at 23:34
  • \$\begingroup\$ Not a duplicate, this question was addressed to the creation of a specific tag, not a general discussion about how pascal tags should be organized. \$\endgroup\$
    – cpicanco
    Nov 19 '15 at 1:07
1
\$\begingroup\$

Now the tag exists. To avoid fragmentation, it redirects to . You can follow the discussion here: (pascal) vs. (free-pascal).

Some remarks:

  • Free Pascal Compiler (by Florian Klaempfl and others) is also a Pascal compiler. There are several Pascal compilers with significant differences from one to another. Just to give you an example, Turbo Pascal is fully compatible with Free Pascal, but the opposite is not true.

  • As the previous fact approaches its limit, working code for a compiler implies it will be broken code to another. As you should know, CodeReview is not a place for broken code.

  • Free Pascal, free as in freedom, refers to the open source culture, and the licence allows both copyleft and copyright derivatives. Proprietary, closed source compilers do not. It has, as you can expect, huge impact on accessibility and hackability of the code.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .