[fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX

2008-02-05 Thread Bent Normann Olsen
Hi all, Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX? Thanks, Normann ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Michael Van Canneyt
On Tue, 5 Feb 2008, Tiziano De Togni wrote: > > From the Delphi (7) help and in the borland newgroups I read that the old TP > style object type is considered to disappear, and actually only kept for code > compatibility. > > I see here that some developers still use the type object because of

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Florian Klaempfl
> My other question is: > Will Free Pascal still support the type object in the future or it is > considered to disappear in the same way as it is expected in Delphi? It won't disappear in FPC, even the compiler itself uses it at certain places. ___ fpc-

[fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Tiziano De Togni
From the Delphi (7) help and in the borland newgroups I read that the old TP style object type is considered to disappear, and actually only kept for code compatibility. I see here that some developers still use the type object because of some advantages against the Class type (static alloca

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Vinzent Hoefler
On Tuesday 05 February 2008 12:02, Tiziano De Togni wrote: > Michael Van Canneyt ha scritto: > > > > The advantage is mainly that you can have objects on the stack. > > sorry, but don't understand exactly what this means exactly. The main difference is here: -- 8< -- procedure Uses_Objects; var

Re: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX

2008-02-05 Thread Vincent Snijders
Bent Normann Olsen schreef: Hi all, Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX? There won't be Lazarus releases with FPC 2.3.1, because FPC 2.3.1 is not a release, but a development snapshot. FPC 2.3.1 will become FPC 2.4.0, when it will be released.

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Tiziano De Togni: Michael Van Canneyt ha scritto: On Tue, 5 Feb 2008, Tiziano De Togni wrote: From the Delphi (7) help and in the borland newgroups I read that the old TP style object type is considered to disappear, and actually only kept for code compatibili

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Tiziano De Togni
Michael Van Canneyt ha scritto: On Tue, 5 Feb 2008, Tiziano De Togni wrote: From the Delphi (7) help and in the borland newgroups I read that the old TP style object type is considered to disappear, and actually only kept for code compatibility. I see here that some developers still use the t

RE: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX

2008-02-05 Thread Bent Normann Olsen
Thanks for the reply, I was especially interested in the 2.3.1 fix in the sizes for enumerated types. Small enumerated types in FPC 2.2.0 has the size of 4 bytes, and 1 byte in Delphi. Sizes of small enumerated types in FPC 2.3.1 is 1 byte after the fix. I understand, that "set of" types has the s

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj = ^TMyObj; Yes, objects (by specification) are defined to have the sa

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Luiz Americo Pereira Camara
Daniël Mantione wrote: [..] Stack allocation is much faster than heap allocation, and automatic. Take a look at the matrix unit; you can return an object from a function without worrying about memory leaks, so they are very usefull in function results and operator overloading. Further, ob

Re: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX

2008-02-05 Thread Jonas Maebe
On 05 Feb 2008, at 13:24, Bent Normann Olsen wrote: Thanks for the reply, I was especially interested in the 2.3.1 fix in the sizes for enumerated types. Small enumerated types in FPC 2.2.0 has the size of 4 bytes, and 1 byte in Delphi. Sizes of small enumerated types in FPC 2.3.1 is 1 b

RE: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX

2008-02-05 Thread Bent Normann Olsen
Jonas, Thanks for the reply. I tested this on FPC 2.2.0 for i386 Mac and it worked just as you described. This is only a workaround for files already stored from a current version of an application, and future versions will not behave this way ;-) Thanks again, Normann -Original Message---

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marco van de Voort
> Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: > > Moreover, whats the difference between objects and records with methods > > (the > > new Delphi feature)? > > Objects can have virtual methods, constructors, destructors. The new > Delphi feature cannot. The records-with-methods fe

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj = ^TMyObj; Yes, objects (by specification) ar

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Vinzent Hoefler wrote: On Tuesday 05 February 2008 12:02, Tiziano De Togni wrote: Michael Van Canneyt ha scritto: The advantage is mainly that you can have objects on the stack. sorry, but don't understand exactly what this means exactly. The main difference is here: -- 8< -- procedure Use

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Marc Weustink: Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Marc Weustink: Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method