[fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Ben
Hi,

What is the programming language used in and with the Free Pascal Compiler?

* Object Pascal
* Delphi
* Free Pascal
* Pascal


I would have thought the first option [Object Pascal], but I have read
many articles/blogs on the internet which seem to refer to the Free
Pascal Compiler project's language as Free Pascal.

So what is the official word/answer on this?

If the Free Pascal Compiler project indeed does consider it having its
own Pascal dialect, named Free Pascal, then is there a list of what
syntax it has that is different to Borland's "Object Pascal", or
Embarcadero's "Delphi" language?


-- 

Ben.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Javascript in Desktop Applications

2011-02-08 Thread Sven Barth

Am 07.02.2011 15:16, schrieb Andrew Brunner:

Does anyone have any BESEN examples that integrated actual FPC units?
It seems like all the samle js units are self contained with no
interface to system or GUI units.


I haven't looked at the source in general and I also haven't tested it 
yet, but take a look at TBESEN.RegisterNativeObject in BESEN.pas and 
TBESENNativeObject in BESENNativeObject.pas. TBESENNativeObject utilizes 
RTTI, so this seems to be the way to access native code. You might need 
to inherit from that class and provide published methods/properties for 
the native code you want to use.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Marco van de Voort
In our previous episode, Ben said:
> What is the programming language used in and with the Free Pascal Compiler?
> 
> * Object Pascal
> * Delphi
> * Free Pascal
> * Pascal

Pretty much all apply.  Free Pascal has a mode concept with 5/6 modes.

The first is a Turbo Pascal compatible mode, but the object extensions of
Turbo Pascal were also called "object pascal" in the day.

The second is a fpc (Free Pascal mode), which is a Turbo Pascal like mode
with some extensions and some limiting backwards compatibility features of
Turbo mode removed.

The third is a Delphi compatible mode, which, by Borland itself, was called
"Object Pascal" too.

The fourth is the "Object Free Pascal" mode, which is more like a "strict"
Delphi mode.

The fifth is a Mac Pascal mode whose Pascal was also called "Object Pascal"
in the day. This mode also has a submode called "objectIVE Pascal".

The sixth is an ISO Pascal mode, and together with Mac Pascal mode it comes
closest to the original Pascal (the Borland dialects, Turbo and Delphi are
based on a subset of the original Pascal). This mode is only available in
development versions.

The reason for so many "Object Pascal" names is that there were many
attempts to add Objects to Pascal, but they all take the name of an early
proposal to do so.

The "Objective" mode is not related to that, but to Objective C, the
language where parts of the OS X system interfaces are specified in.

> If the Free Pascal Compiler project indeed does consider it having its
> own Pascal dialect, named Free Pascal, then is there a list of what
> syntax it has that is different to Borland's "Object Pascal", or
> Embarcadero's "Delphi" language?

The FPC modes are mostly variants of the Borland modes. Delphi is a bit of a
problematic term because there is no formal standard, and the various
Delphi versions don't always agree on things.

In general, the compatibility with older versions (up to D7) is very high,
only some more exotic things are not implemented. Libraries will probably
pose a bigger problem than language.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Jonas Maebe


On 08 Feb 2011, at 09:58, Marco van de Voort wrote:

The fifth is a Mac Pascal mode whose Pascal was also called "Object  
Pascal"

in the day. This mode also has a submode called "objectIVE Pascal".


Objective-Pascal is unrelated to the Mac Pascal mode:
a) syntactically they are not related
b) Objective-Pascal is a modeswitch (rather than a syntax mode) and  
can be used in combination with every syntax mode (from TP to to  
ObjFPC to ISO)



Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Jonas Maebe


On 08 Feb 2011, at 09:34, Ben wrote:


If the Free Pascal Compiler project indeed does consider it having its
own Pascal dialect, named Free Pascal, then is there a list of what
syntax it has that is different to Borland's "Object Pascal", or
Embarcadero's "Delphi" language?


I don't think there's an exhaustive list, but the main differences are  
mentioned at http://www.freepascal.org/docs-html/prog/progse75.html  
and http://www.freepascal.org/port.var



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Cees Binkhorst
It is even mentioned here (together with 43,5 other Pascal dialects :)

http://99-bottles-of-beer.net/

On 02/08/2011 09:34 AM, Ben wrote:
> Hi,
> 
> What is the programming language used in and with the Free Pascal Compiler?
> 
> * Object Pascal
> * Delphi
> * Free Pascal
> * Pascal
> 
> 
> I would have thought the first option [Object Pascal], but I have read
> many articles/blogs on the internet which seem to refer to the Free
> Pascal Compiler project's language as Free Pascal.
> 
> So what is the official word/answer on this?
> 
> If the Free Pascal Compiler project indeed does consider it having its
> own Pascal dialect, named Free Pascal, then is there a list of what
> syntax it has that is different to Borland's "Object Pascal", or
> Embarcadero's "Delphi" language?
> 
> 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-08 Thread Mark Morgan Lloyd

Marco van de Voort wrote:

In our previous episode, Ben said:

What is the programming language used in and with the Free Pascal Compiler?

* Object Pascal
* Delphi
* Free Pascal
* Pascal


Pretty much all apply.  Free Pascal has a mode concept with 5/6 modes.


I think that we need to distinguish between the name of the language 
(either Pascal or Object Pascal) and the implementation (Free Pascal). 
It's entirely reasonable that there be variations in the underlying 
language depending on implementation.


I'd suggest that an issue to be considered is what facilities are 
available in the language by default, i.e. with no command line options, 
embedded directives or "uses" statements.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: Name of the programming language used in/with FPC

2011-02-08 Thread leledumbo

Moreover, we need to distinguish between the base (i.e. standard) language
and the implemented language (and its extensions). Almost all programming
languages with more than one implementations do. For instance, standard C
cannot have nested functions, but C implemented by GCC can. Standard C
cannot have ... to mark range in case part of a switch statement, but C
implemented by GCC can.
-- 
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Name-of-the-programming-language-used-in-with-FPC-tp3375543p3376333.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal