Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Florian Klaempfl
Doug Chamberlin schrieb: Jonas Maebe wrote: On 02 Jan 2010, at 21:56, Doug Chamberlin wrote: 1) Yes, the Users Guide has installation instructions in Chapter 2. However, it warns only to not install the software into directories that contain embedded spaces. It does NOT warn about untarring

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Lou James
I still didn't find out where to get the 2.4.0 version for iphone.. Shouldn't it be under ARM/Mac OS X? -- 樓洵(AquarHEAD) -- Blossoms which were the joys that fell, And leaves, the hopes that yet remain. -- http://www.AquarHEAD.com ___

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Florian Klaempfl
Lou James schrieb: I still didn't find out where to get the 2.4.0 version for iphone.. Shouldn't it be under ARM/Mac OS X? No. The directories are named by host operating system so the arm-macosx cross compiler is in ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/i386-macosx/

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Lou James
Oh I see. Thanks Happy New Year!~ 2010/1/3 Florian Klaempfl flor...@freepascal.org Lou James schrieb: I still didn't find out where to get the 2.4.0 version for iphone.. Shouldn't it be under ARM/Mac OS X? No. The directories are named by host operating system so the arm-macosx cross

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Peter W A Wood
Jonas Maebe wrote: http://edn.embarcadero.com/article/6 Note that even Delphi doesn't have them yet (it might also turn up in Delphi in the future). Looks as something related to: http://en.wikipedia.org/wiki/Anonymous_function#Delphi ? If so then this is already implemented in

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Florian Klaempfl
Peter W A Wood schrieb: Jonas Maebe wrote: http://edn.embarcadero.com/article/6 Note that even Delphi doesn't have them yet (it might also turn up in Delphi in the future). Looks as something related to: http://en.wikipedia.org/wiki/Anonymous_function#Delphi ? If so then this is

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Michael Van Canneyt
On Sun, 3 Jan 2010, Florian Klaempfl wrote: Peter W A Wood schrieb: Jonas Maebe wrote: http://edn.embarcadero.com/article/6 Note that even Delphi doesn't have them yet (it might also turn up in Delphi in the future). Looks as something related to:

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: I still don't get what's the real use of such constructs? I see only that it seems to encourage a hacky scripting language like coding style? Or like Javascript. That one gives me a headache when just looking at it :( I don't understand

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Frank Peelo
Rainer Stratmann wrote: Am Saturday 02 January 2010 16:34:57 schrieb JoshyFun: a: array[1..] or string = ('aaa', 'bbb', 'ccc'); That would be perfect. Then you can automatically calculate the amount: amax = sizeof( a ) div sizeof( a[ 1 ] ); If this syntax was in Pascal, would you use

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Jonas Maebe
On 03 Jan 2010, at 13:03, Frank Peelo wrote: Rainer Stratmann wrote: Am Saturday 02 January 2010 16:34:57 schrieb JoshyFun: a: array[1..] or string = ('aaa', 'bbb', 'ccc'); That would be perfect. Then you can automatically calculate the amount: amax = sizeof( a ) div sizeof( a[ 1 ] );

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Rainer Stratmann
Am Sunday 03 January 2010 13:03:37 schrieb Frank Peelo: Rainer Stratmann wrote: Am Saturday 02 January 2010 16:34:57 schrieb JoshyFun: a: array[1..] or string = ('aaa', 'bbb', 'ccc'); That would be perfect. Then you can automatically calculate the amount: amax = sizeof( a ) div

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Jonas Maebe
On 03 Jan 2010, at 13:12, Rainer Stratmann wrote: Am Sunday 03 January 2010 13:03:37 schrieb Frank Peelo: Rainer Stratmann wrote: Then you can automatically calculate the amount: amax = sizeof( a ) div sizeof( a[ 1 ] ); If this syntax was in Pascal, would you use High(a)-Low(a)+1 rather

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Doug Chamberlin
Florian Klaempfl wrote: Doug Chamberlin schrieb: Anyone know how soon this will be incorporated into the tar file that is posted as the latest 2.4 download? Never. 2.4.0 is out and finished. OK. anyone know when this fix will be incorporated into the next tarball posted to be the latest

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Vincent Snijders
Doug Chamberlin schreef: Florian Klaempfl wrote: Doug Chamberlin schrieb: Anyone know how soon this will be incorporated into the tar file that is posted as the latest 2.4 download? Never. 2.4.0 is out and finished. OK. anyone know when this fix will be incorporated into the next tarball

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Rainer Stratmann
Am Sunday 03 January 2010 13:19:39 schrieb Jonas Maebe: On 03 Jan 2010, at 13:12, Rainer Stratmann wrote: Am Sunday 03 January 2010 13:03:37 schrieb Frank Peelo: Rainer Stratmann wrote: Then you can automatically calculate the amount: amax = sizeof( a ) div sizeof( a[ 1 ] ); If this

Re: [fpc-pascal] Const Array Length (was Dynamic Array Length)

2010-01-03 Thread Jürgen Hestermann
Rainer Stratmann schrieb: Pascal has better ways to deal with array bounds. But at this moment it is not possible to make a const array with auto calculated range ( [ 1..] ). It would be easy to implement, I think. But these things are not related. Calculating array bounds should not be

[fpc-pascal] Closures (or anonymous functions)

2010-01-03 Thread Juha Manninen
On lauantai, 2. tammikuuta 2010 17:13:40 Anthony Walter wrote: On Sat, Jan 2, 2010 at 5:44 AM, Paul Ishenin webpi...@mail.ru wrote: Jonas Maebe wrote: http://edn.embarcadero.com/article/6 Note that even Delphi doesn't have them yet (it might also turn up in Delphi in the future).

Re: [fpc-pascal] Closures (or anonymous functions)

2010-01-03 Thread Anthony Walter
I'll just repeat what I said in the FPC 2.4.0 release thread. * See the good news note at the bottom of this message Something I've really found useful in C#/.NET is lambda functions and capturing locals (closures). This feature solves asynchronous design for me in so many ways. If you can