Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread Sven Barth

Am 28.02.2012 20:31, schrieb Lukasz Stafiniak:

On Tue, Feb 28, 2012 at 8:22 AM, Noah Silva
shir...@galapagossoftware.com  wrote:


If you want to convince people to use FPC and are having issues, you should
ask them what features, exactly, they are looking for.  Chances are that FPC
has them.  (If they want a functional language, though, then you're out of
luck).


Pascal is not entirely opposed to being a functional language. There
are two missing language features (consider it a proposal of
Functional Pascal):

(1) A declaration part, that parallels var, with keyword val or
let (since val is taken up by a procedure). It introduces named
values, i.e. non-assignable variables. The part after = can be any
expression. Therefore, this feature spoils the declaration --
implementation divide that is dear to Pascal.


I personally don't see a use for this... but feel free to provide a 
useful example ;)



(2) Closures. That is, making local functions that only use const
arguments and val / let variables safe to return from the outer
function. This can be done by allocating the val / let data on the
heap, or perhaps easier by copying them into an implicitly built
object and interpreting the returned local function as pointer to
method of this object. The closure-object would be memory-managed as
other objects.


Closures are already supported by Delphi 2009 and are currently being 
worked on by someone in FPC.


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


Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread Noa Shiruba
Hi,


By the way, I was wrong about saying ABAP doesn't work outside of SAP BASIS in 
me previous example, I found their research project caffeine today and got it 
working.  Of course my next step will be to see how to make it interface with 
FPC. :)

Also, did anyone else notice that tile is now used by some standard units in 
FPC 2.6?

Thank you, 
 Noah silva



On 2012/02/29, at 19:31, Sven Barth pascaldra...@googlemail.com wrote:

 Am 28.02.2012 20:31, schrieb Lukasz Stafiniak:
 On Tue, Feb 28, 2012 at 8:22 AM, Noah Silva
 shir...@galapagossoftware.com  wrote:
 
 If you want to convince people to use FPC and are having issues, you should
 ask them what features, exactly, they are looking for.  Chances are that FPC
 has them.  (If they want a functional language, though, then you're out of
 luck).
 
 Pascal is not entirely opposed to being a functional language. There
 are two missing language features (consider it a proposal of
 Functional Pascal):
 
 (1) A declaration part, that parallels var, with keyword val or
 let (since val is taken up by a procedure). It introduces named
 values, i.e. non-assignable variables. The part after = can be any
 expression. Therefore, this feature spoils the declaration --
 implementation divide that is dear to Pascal.
 
 I personally don't see a use for this... but feel free to provide a useful 
 example ;)
 
 (2) Closures. That is, making local functions that only use const
 arguments and val / let variables safe to return from the outer
 function. This can be done by allocating the val / let data on the
 heap, or perhaps easier by copying them into an implicitly built
 object and interpreting the returned local function as pointer to
 method of this object. The closure-object would be memory-managed as
 other objects.
 
 Closures are already supported by Delphi 2009 and are currently being worked 
 on by someone in FPC.
 
 Regards,
 Sven
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread Sven Barth

Am 29.02.2012 14:02, schrieb Noa Shiruba:

Also, did anyone else notice that tile is now used by some standard units in 
FPC 2.6?


How did you come to this conclusion? (I ask out of curiosity)

Regards,
Sven

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


[fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Frank Church
A few months ago I inquired and got some info about FPC docs - discussed in
this thread
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html,
the result of which can be found here - http://fpdocs.rca2.net and here  -
http://fpdocs.rca2.net/user/user.html, when FPC was at 2.4.4

When I visit the source page
http://www.freepascal.org/docs-html/user/user.html it is not on 2.6.0.

1. Are the created by a tool or hand edited?

2. Is there some page where the original docs are created?

3. Are they text files that are stored under version control?

4. Is there some page where previous versions are available?

PS. After some searching questions 2, 3 and 4 are answered -
http://svn.freepascal.org/svn/fpcdocs/.

One more thing is there some other page where the commit messages for the
files are noted? I can only see plain text.

I am of now to ask similar questions about Lazarus

-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread michael . vancanneyt



On Wed, 29 Feb 2012, Frank Church wrote:


A few months ago I inquired and got some info about FPC docs - discussed in
this thread
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html,
the result of which can be found here - http://fpdocs.rca2.net and here  -
http://fpdocs.rca2.net/user/user.html, when FPC was at 2.4.4

When I visit the source page
http://www.freepascal.org/docs-html/user/user.html it is not on 2.6.0.

1. Are the created by a tool or hand edited?


Depends on what you mean. The docs are made by hand. When we make a release,
we manually upload the new version.



2. Is there some page where the original docs are created?


No.



3. Are they text files that are stored under version control?


Yes.



4. Is there some page where previous versions are available?


No.



PS. After some searching questions 2, 3 and 4 are answered -
http://svn.freepascal.org/svn/fpcdocs/.

One more thing is there some other page where the commit messages for the
files are noted? I can only see plain text.


No.

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


Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Tomas Hajny
On Wed, February 29, 2012 16:44, michael.vancann...@wisa.be wrote:
 On Wed, 29 Feb 2012, Frank Church wrote:

 A few months ago I inquired and got some info about FPC docs - discussed
 in
 this thread
 http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html,
 the result of which can be found here - http://fpdocs.rca2.net and here
 -
 http://fpdocs.rca2.net/user/user.html, when FPC was at 2.4.4

 When I visit the source page
 http://www.freepascal.org/docs-html/user/user.html it is not on 2.6.0.
 .
 .
 4. Is there some page where previous versions are available?

 No.

To amend Michael's answer a bit - previous releases of the compiled
documentation are obviously available for download in the standard way and
the source files for the documentation can be accessed via the SVN
repository in a standard way to check for differences to some older
revisions.

Tomas


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


Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Frank Church
On 29 February 2012 15:44, michael.vancann...@wisa.be wrote:



 On Wed, 29 Feb 2012, Frank Church wrote:

  A few months ago I inquired and got some info about FPC docs - discussed
 in
 this thread
 http://lists.lazarus.**freepascal.org/pipermail/**
 lazarus/2011-November/068595.**htmlhttp://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068595.html
 ,
 the result of which can be found here - http://fpdocs.rca2.net and here
  -
 http://fpdocs.rca2.net/user/**user.htmlhttp://fpdocs.rca2.net/user/user.html,
 when FPC was at 2.4.4

 When I visit the source page
 http://www.freepascal.org/**docs-html/user/user.htmlhttp://www.freepascal.org/docs-html/user/user.htmlit
  is not on 2.6.0.

 1. Are the created by a tool or hand edited?


 Depends on what you mean. The docs are made by hand. When we make a
 release,
 we manually upload the new version.



 2. Is there some page where the original docs are created?


 No.



 3. Are they text files that are stored under version control?


 Yes.



 4. Is there some page where previous versions are available?


 No.



 PS. After some searching questions 2, 3 and 4 are answered -
 http://svn.freepascal.org/svn/**fpcdocs/http://svn.freepascal.org/svn/fpcdocs/
 .

 One more thing is there some other page where the commit messages for the
 files are noted? I can only see plain text.


 No.

 Michael.
 __**_
 fpc-pascal maillist  -  
 fpc-pascal@lists.freepascal.**orgfpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/**mailman/listinfo/fpc-pascalhttp://lists.freepascal.org/mailman/listinfo/fpc-pascal



I am asking because if there some changes to some of the pages because of
new language facilities etc, some features, deprecated etc commit messages
would make it easier to track what is new and what has been changed. The
pages are also not dated so it is difficult to find out what may be
pertinent in the present and what is old and perhaps little used.

Another question, are you and Florian Klaempfl the main or only
contributors? Is it open to only a few people and do you upload it for
general viewing only when it is ready? In a nutshell is it possible to non
contributors to view the changes as they are happening?

-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread michael . vancanneyt



On Wed, 29 Feb 2012, Frank Church wrote:



I am asking because if there some changes to some of the pages because of
new language facilities etc, some features, deprecated etc commit messages
would make it easier to track what is new and what has been changed. The
pages are also not dated so it is difficult to find out what may be
pertinent in the present and what is old and perhaps little used.

Another question, are you and Florian Klaempfl the main or only
contributors?


I am virtually the only one, but I do receive and apply minor patches 
from time to time.



Is it open to only a few people and do you upload it for
general viewing only when it is ready? In a nutshell is it possible to non
contributors to view the changes as they are happening?


Everything is in subversion, the fpcdocs repository.

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


Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Frank Church
On 29 February 2012 16:07, michael.vancann...@wisa.be wrote:



 On Wed, 29 Feb 2012, Frank Church wrote:


 I am asking because if there some changes to some of the pages because of
 new language facilities etc, some features, deprecated etc commit messages
 would make it easier to track what is new and what has been changed. The
 pages are also not dated so it is difficult to find out what may be
 pertinent in the present and what is old and perhaps little used.

 Another question, are you and Florian Klaempfl the main or only
 contributors?


 I am virtually the only one, but I do receive and apply minor patches from
 time to time.


  Is it open to only a few people and do you upload it for
 general viewing only when it is ready? In a nutshell is it possible to non
 contributors to view the changes as they are happening?


 Everything is in subversion, the fpcdocs repository.


 Michael.
 __**_
 fpc-pascal maillist  -  
 fpc-pascal@lists.freepascal.**orgfpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/**mailman/listinfo/fpc-pascalhttp://lists.freepascal.org/mailman/listinfo/fpc-pascal



So it means that if I want to check on updates I have to download the
repository and link it with something like ViewVC or ViewSVN?

How often do you update it?




-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Vincent Snijders
Op 29 februari 2012 16:29 heeft Frank Church vfcli...@gmail.com het
volgende geschreven:
 4. Is there some page where previous versions are available?

 PS. After some searching questions 2, 3 and 4 are answered -
 http://svn.freepascal.org/svn/fpcdocs/.

or: http://svn.freepascal.org/cgi-bin/viewvc.cgi/?root=docs

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


[fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 18:57, Frank Church wrote:
 On 29 February 2012 16:07, michael.vancann...@wisa.be
 mailto:michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:

 Is it open to only a few people and do you upload it for
 general viewing only when it is ready? In a nutshell is it
 possible to non
 contributors to view the changes as they are happening?
 
 
 Everything is in subversion, the fpcdocs repository.

 
 So it means that if I want to check on updates I have to download the
 repository and link it with something like ViewVC or ViewSVN?


or svn update, svn log | more, I suppose?

Reinier

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


Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread Vincent Snijders
Op 29 februari 2012 18:57 heeft Frank Church vfcli...@gmail.com het
volgende geschreven:

 How often do you update it?

See:
http://svn.freepascal.org/svn/logs/fpcdocs-trunk.log

(also available with viewvc).

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


[fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:
 On Wed, 29 Feb 2012, Frank Church wrote:
 Another question, are you and Florian Klaempfl the main or only
 contributors?
 
 I am virtually the only one, but I do receive and apply minor patches
 from time to time.
*Cough*
http://bugs.freepascal.org/view.php?id=20735
*cough*

I'd love to see that patch committed or get some feedback on it ;)

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


Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Frank Church
On 29 February 2012 18:10, Reinier Olislagers
reinierolislag...@gmail.comwrote:

 On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:
  On Wed, 29 Feb 2012, Frank Church wrote:
  Another question, are you and Florian Klaempfl the main or only
  contributors?
 
  I am virtually the only one, but I do receive and apply minor patches
  from time to time.
 *Cough*
 http://bugs.freepascal.org/view.php?id=20735
 *cough*

 I'd love to see that patch committed or get some feedback on it ;)

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


I take it that only Michael can add the ibxconnection.xml files to the
documentation?

-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Any way to find all descendants of a class?

2012-02-29 Thread Craig Peterson
In Delphi I can use the new extended RTTI support to build a list of all
TForm descendants in my application (TRttiContext.GetTypes).  Is there
any way to do the same thing in Free Pascal without having to explicitly
add each class to a list?

I do have an intermediate class that all of our other forms descend
from, so I can add something there if necessary, and I don't need it to
be compatible with Delphi.

-- 
Craig Peterson
Scooter Software

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


Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Frank Church
On 29 February 2012 18:10, Reinier Olislagers
reinierolislag...@gmail.comwrote:

 On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:
  On Wed, 29 Feb 2012, Frank Church wrote:
  Another question, are you and Florian Klaempfl the main or only
  contributors?
 
  I am virtually the only one, but I do receive and apply minor patches
  from time to time.
 *Cough*
 http://bugs.freepascal.org/view.php?id=20735
 *cough*

 I'd love to see that patch committed or get some feedback on it ;)

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



Another question I want to ask. Was the file generated created completely
by hand or did you use a tool to generate a skeleton and layout from the
source before filling it out?
-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 20:08, Frank Church wrote:
 On 29 February 2012 18:10, Reinier Olislagers
 reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote:
 *Cough*
 http://bugs.freepascal.org/view.php?id=20735
 *cough*
 
 I'd love to see that patch committed or get some feedback on it ;)
 
 Regards,
 Reinier
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 mailto:fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 
 
 
 Another question I want to ask. Was the file generated created
 completely by hand or did you use a tool to generate a skeleton and
 layout from the source before filling it out?
 --
 Frank Church

I think I used makeskel; see my postings on the list (would be around
November).
After that, it turned out editing the file by hand was quicker than
using fpdoc editor/lazde...

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


Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Michael Van Canneyt



On Wed, 29 Feb 2012, Reinier Olislagers wrote:


On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:

On Wed, 29 Feb 2012, Frank Church wrote:

Another question, are you and Florian Klaempfl the main or only
contributors?


I am virtually the only one, but I do receive and apply minor patches
from time to time.

*Cough*
http://bugs.freepascal.org/view.php?id=20735
*cough*

I'd love to see that patch committed or get some feedback on it ;)


oh :/

I tried it at once when you submitted it.
But there were quite some errors in the XML, which is why I left it for later...

 and eventually forgot about it :(

My apologies for this.

I now corrected the XML and committed it. Rev 892.

Thank you for the contribution !

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


[fpc-pascal] Weird compilation warnings

2012-02-29 Thread Guillermo Martínez Jiménez
Hello,

FPC is returning the Warning: cdecl’ared functions have no high
parameter but I have no idea why.  The documentation just says
Functions declared with the cdecl modifier do not pass an extra
implicit parameter. but the affected functions don't have any extra
implicit parameter.

I'm using FPC 2.4.2 (the one that came with Lazarus).

Here you have some sample code:
___

UNIT a...;
IMPLEMENTATION

  {$MODE FPC}
  {$PACKRECORDS C}
  {$LONGSTRINGS ON}

{ Next declaration compiles Ok. }
  PROCEDURE al_draw_ustr (CONST font: ALLEGRO_FONTptr; color:
ALLEGRO_COLOR; x, y: SINGLE; flags: LONGINT; CONST ustr:
ALLEGRO_USTRptr); CDECL;

{ Next one raises the WARNING }
  FUNCTION al_grab_font_from_bitmap (bmp: ALLEGRO_BITMAPptr; n:
LONGINT; ranges: ARRAY OF LONGINT): ALLEGRO_FONTptr; CDECL;
...

IMPLEMENTATION

  PROCEDURE al_draw_ustr (CONST font: ALLEGRO_FONTptr; color:
ALLEGRO_COLOR; x, y: SINGLE; flags: LONGINT; CONST ustr:
ALLEGRO_USTRptr); CDECL;
  EXTERNAL ALLEGRO_FONT_LIB_NAME;

  FUNCTION al_grab_font_from_bitmap (bmp: ALLEGRO_BITMAPptr; n:
LONGINT; ranges: ARRAY OF LONGINT): ALLEGRO_FONTptr; CDECL;
  EXTERNAL ALLEGRO_FONT_LIB_NAME;
...

END.
_

Guillermo Ñuño Martínez
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread Noa Shiruba
Hi Sven,

Several of my programs stopped compiling with duplicate identifier errors 
where I had something like:

Var Tile:TOSMTile;

I thing the offending unit was Graphics, but I am not 100% sure.

(I just did search and replace of Tile to MapTile in my code to fix it once I 
realized the conflicting definition Was coming from one of the standard units).

Thank you,
  Noah Silva

On 2012/02/29, at 22:27, Sven Barth pascaldra...@googlemail.com wrote:

 Am 29.02.2012 14:02, schrieb Noa Shiruba:
 Also, did anyone else notice that tile is now used by some standard units 
 in FPC 2.6?
 
 How did you come to this conclusion? (I ask out of curiosity)
 
 Regards,
 Sven
 
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread leledumbo
That shouldn't happen. You are allowed to alias identifiers found in units
used (and that's the unit scoping rule). The only case where duplicate
identifier error occurs is when you have them in the same unit (either
directly or via include files).

--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/What-is-the-most-widely-used-Pascal-on-Linux-and-other-Unix-variants-tp5518482p5526560.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


[fpc-pascal] Variant vs Pointer

2012-02-29 Thread Marcos Douglas
Hi,

The TField class have the FValueBuffer: Pointer attribute and have
also SetData(Buffer: Pointer,...) method that all T***Field subclasses
use to set themselves.
The methods AsInteger, AsString, etc use FValueBuffer to convert in an
especific type. So, FValueBuffer could be anything.

My question is:
What would be the difference in performance if FValueBuffer were a Variant type?

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


Re: [fpc-pascal] Re: Duplicate Identifier

2012-02-29 Thread Noah Silva
Hi leledumbo,

(Changing the topic to indicate OT)

I didn't really take time to figure out whether it should be happening or
not, I just changed the references not to conflict.  If you are interested,
though, I reproduced it in the screenshot below for you:

https://picasaweb.google.com/lh/photo/qXJYu68KE20oWWM2loKWTtMTjNZETYmyPJy0liipFm0?feat=directlink

Thank you,
 Noah Silva

2012/3/1 leledumbo leledumbo_c...@yahoo.co.id

 That shouldn't happen. You are allowed to alias identifiers found in units
 used (and that's the unit scoping rule). The only case where duplicate
 identifier error occurs is when you have them in the same unit (either
 directly or via include files).

 --
 View this message in context:
 http://free-pascal-general.1045716.n5.nabble.com/What-is-the-most-widely-used-Pascal-on-Linux-and-other-Unix-variants-tp5518482p5526560.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

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

Re: [fpc-pascal] Any way to find all descendants of a class?

2012-02-29 Thread Sven Barth

Am 29.02.2012 19:58, schrieb Craig Peterson:

In Delphi I can use the new extended RTTI support to build a list of all
TForm descendants in my application (TRttiContext.GetTypes).  Is there
any way to do the same thing in Free Pascal without having to explicitly
add each class to a list?



Free Pascal does not yet support the extended RTTI, so the answer is: No.


I do have an intermediate class that all of our other forms descend
from, so I can add something there if necessary, and I don't need it to
be compatible with Delphi.



In theory all classes that can be read from e.g. an LFM file are 
registered with the RTL's streaming system. So please check whether the 
corresponding functions can help you. You can find them in 
$fpcdir/rtl/objpas/classes/classesh.inc around line 1938 (look for 
RegisterClass).


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


Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Sven Barth

Am 29.02.2012 19:16, schrieb Frank Church:



On 29 February 2012 18:10, Reinier Olislagers
reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote:

On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org
mailto:michael.vancanneyt-0is9kj9s...@public.gmane.org wrote:
  On Wed, 29 Feb 2012, Frank Church wrote:
  Another question, are you and Florian Klaempfl the main or only
  contributors?
 
  I am virtually the only one, but I do receive and apply minor patches
  from time to time.
*Cough*
http://bugs.freepascal.org/view.php?id=20735
*cough*

I'd love to see that patch committed or get some feedback on it ;)

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


I take it that only Michael can add the ibxconnection.xml files to the
documentation?


Not everyone has write accesss to SVN. I don't know who exactly has 
write access to fpcdocs, but Michael is one of them.


Regards,
Sven

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


Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-29 Thread Sven Barth

Am 01.03.2012 01:43, schrieb Noa Shiruba:

Hi Sven,

Several of my programs stopped compiling with duplicate identifier errors 
where I had something like:

Var Tile:TOSMTile;

I thing the offending unit was Graphics, but I am not 100% sure.

(I just did search and replace of Tile to MapTile in my code to fix it once I 
realized the conflicting definition Was coming from one of the standard units).


This is strange. As leledumbo said a duplicated identifier error 
should only appear if you used tile inside the current unit already. 
Are you sure you didn't use it as unit name? If you can still reproduce 
it when you use tile again, can you narrow down the problem and please 
report a bug if it's not an oversight by you?


Regards,
Sven

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


Re: [fpc-pascal] Re: Duplicate Identifier

2012-02-29 Thread Sven Barth

Am 01.03.2012 03:35, schrieb Noah Silva:

Hi leledumbo,

(Changing the topic to indicate OT)

I didn't really take time to figure out whether it should be happening
or not, I just changed the references not to conflict.  If you are
interested, though, I reproduced it in the screenshot below for you:

https://picasaweb.google.com/lh/photo/qXJYu68KE20oWWM2loKWTtMTjNZETYmyPJy0liipFm0?feat=directlink


Hmm. Did you use Tile as a field or property of the class TfrmMap 
already? Then this is expected, because FPC will in non-Delphi modes 
error if you reuse an identifier, which is already used as a field or 
property, as a type or local parameter of a method that belongs to the 
same class.


Regards,
Sven

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


[fpc-pascal] Re: Duplicate Identifier

2012-02-29 Thread leledumbo
That's different case IMHO (In My Humble Observation), I guess it's something
like this:

{$mode objfpc}
type
  TTestClass = class
FTile: Integer;
property Tile: Integer read FTile write FTile;
procedure Test;
  end;
 
procedure TTestClass.Test;
var
  Tile: Integer;
begin
end;
 
begin
end.

In this case, the local variable has the same name as one of the class
properties. This does trigger the duplicate identifier error because both
have the same scope.

--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Re-Duplicate-Identifier-tp5526700p5527107.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