[fpc-pascal] Re: Fatal: Internal error 200109227... and some boolean questions

2011-12-11 Thread Bernd
I have filed a bug about the fatal error. http://bugs.freepascal.org/view.php?id=20874 Should I also file a bug about the other problem (IF not working properly with QWordBool) or is this intended or undefined behavior? ___ fpc-pascal maillist -

[fpc-pascal] IInterface type value and the as keyword

2011-12-11 Thread Honza
Hi list, after a long pause I'm trying to revive some code which I didn't touch as long as early this year. At that time it compiled OK with trunk FPC (I believe version 2.5.1). Now I'm trying to make that code work with current stable (AFAICS that's 2.4.4). Everything went smooth until compiler

Re: [fpc-pascal] IInterface type value and the as keyword

2011-12-11 Thread Marco van de Voort
In our previous episode, Honza said: after a long pause I'm trying to revive some code which I didn't touch as long as early this year. At that time it compiled OK with trunk FPC (I believe version 2.5.1). Early that year 2.5.1 was trunk yes. That same code is now the future fixes branch for

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-11 Thread Michael Van Canneyt
On Sat, 10 Dec 2011, Bernd wrote: 2011/12/10 Michael Van Canneyt mich...@freepascal.org: Check the FTP server, somewhere in the 2.6 directory. Found it, Thanks. The reason I was looking for it was I wanted to know whether there has something changed with the optimization switches. But it

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-11 Thread Bernd
Where did you find this in the docs ? On the official ftp server: ftp://ftp.freepascal.org/pub/fpc/beta/2.6.0-rc1/docs/ I downloadad doc-pdf.zip (file dats inside the zip of all contained pdf files is 2011-10-9-18:01) The file I am referring to is the prog.pdf (Programmer's guide):

Re: [fpc-pascal] CloseThread needed? still unclear

2011-12-11 Thread noreply
I wrote: I think I found some documentation that still doesn't include CloseThread in the examples.. I will send patches or recommendations to the documentation soon. For example closethread is now documented as a function, but some of the other pages that show threading examples just use

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-11 Thread Michael Van Canneyt
On Sun, 11 Dec 2011, Bernd wrote: Where did you find this in the docs ? On the official ftp server: ftp://ftp.freepascal.org/pub/fpc/beta/2.6.0-rc1/docs/ I downloadad doc-pdf.zip (file dats inside the zip of all contained pdf files is 2011-10-9-18:01) The file I am referring to is the

Re: [fpc-pascal] IInterface type value and the as keyword

2011-12-11 Thread Honza
2011/12/11 Marco van de Voort mar...@stack.nl: In our previous episode, Honza said: Now I'm trying to make that code work with current stable (AFAICS that's 2.4.4) Correct, but it is relatively short before the 2.6.0 release, with a first RC1 already available. Since 2.6.0 might arrive this

[fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
Hello listers, I want to sort an open unidimensional array of integers from the minimum to the maximum and from the maximum to the minimum. Is there a standard unit providing this kind of service? Regarding the number of elements is not very high, I don't need complex algorithms. Thank you

Re: [fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Martin Schreiber
On 12/11/2011 09:10 PM, Luciano de Souza wrote: Hello listers, I want to sort an open unidimensional array of integers from the minimum to the maximum and from the maximum to the minimum. MSEgui has sorting functions for dynamic arrays in lib/common/kernel/msearrayutils.pas.

Re: [fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
Yes, the unit seems to be very complete. I will study it and I am sure good results will come up! Thank you! Em 11/12/2011 18:18, Martin Schreiber escreveu: On 12/11/2011 09:10 PM, Luciano de Souza wrote: Hello listers, I want to sort an open unidimensional array of integers from the

[fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to use one and the other... I have read both the programmers guide (7.2) and reference guide (11.9.3) but this didn't really

Re: [fpc-pascal] Shared libries

2011-12-11 Thread noreply
Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to use one and the other... Just different ways of doing it. You can export each one, or you can use exports clause to do

Re: [fpc-pascal] Shared libries

2011-12-11 Thread ik
On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen t...@epidata.dkwrote: Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to use one and the other... export means

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 22:57, ik wrote: On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen t...@epidata.dk mailto:t...@epidata.dk wrote: Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Jonas Maebe
On 11 Dec 2011, at 23:18, Torsten Bonde Christiansen wrote: So in the following example foo would not be visible (neither as foo nor bar) to other program (eg. a C-program) unless I added an *exports* section? Correct. See also

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 23:30, Jonas Maebe wrote: On 11 Dec 2011, at 23:18, Torsten Bonde Christiansen wrote: So in the following example foo would not be visible (neither as foo nor bar) to other program (eg. a C-program) unless I added an *exports* section? Correct. See also

Re: [fpc-pascal] Shared libries

2011-12-11 Thread noreply
Ok, thanks for clearifying that. I guess it's going to be a lot of include files instead... :) -Torsten. Why do you need include files in your case? You can put the units in the uses clause of your library. library something; uses someunit; exports someunit.yourproc; end. The

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Jonas Maebe
On 12 Dec 2011, at 00:48, nore...@z505.com wrote: In newer versions of FPC it allows you to put an exports clause in the unit itself, but older versions didn't allow it. http://bugs.freepascal.org/bug_view_page.php?bug_id=4398history=1 That functionality is buggy and cannot be used safely

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-12 00:48, nore...@z505.com wrote: Ok, thanks for clearifying that. I guess it's going to be a lot of include files instead... :) -Torsten. Why do you need include files in your case? You can put the units in the uses clause of your library. Because it is still going to give me a