Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Florian Klaempfl
Am 30.11.2010 09:04, schrieb Marco van de Voort: > In our previous episode, Michael Van Canneyt said: >>> >>> Seems Delphi XE has deprecated all separate variables, and after ten years >>> did the same as FPC, use an absolute trick. And of course they named it >>> differently (FPC: defaultformatset

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Sven Barth
Am 30.11.2010 09:59, schrieb Paul Ishenin: 30.11.2010 15:52, Sven Barth wrote: What about just using "sealed objects" for this in mode Delphi (maybe change record in that mode to mean "sealed object" by default)? I don't know how much sense that makes, but as both reside on the stack and both ca

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Paul Ishenin
30.11.2010 15:52, Sven Barth wrote: What about just using "sealed objects" for this in mode Delphi (maybe change record in that mode to mean "sealed object" by default)? I don't know how much sense that makes, but as both reside on the stack and both can contain methods (I'm talking about the ext

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Sven Barth
Am 30.11.2010 09:02, schrieb Thaddy: On 29-11-2010 20:31, Sven Barth wrote: You are aware that I'm talking about "object" (the old TP style OOP) not "class" (the Delphi style OOP)? "object" is deprecated in Delphi since I don't know how long, but in FPC it's still maintained and even extended.

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Sven Barth
Am 30.11.2010 03:30, schrieb Paul Ishenin: 30.11.2010 1:23, Marco van de Voort wrote: Like anything new in Delphi nowadays, it is a record-with-some-helpers Time to implement this kind of records in FPC? I tried once but failed because of big changes they require. What about just using "se

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > > Then the only question is if we should deprecate defaultformatsettings. I > > decided to not do this today. Even if we do this, a lot of parameters for > > the overloaded "formatsettings" routines need to be renamed (to > > aformatsetti

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Sven Barth
Am 30.11.2010 03:27, schrieb Paul Ishenin: 30.11.2010 2:31, Sven Barth wrote: You are aware that I'm talking about "object" (the old TP style OOP) not "class" (the Delphi style OOP)? "object" is deprecated in Delphi since I don't know how long, but in FPC it's still maintained and even extended.

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread michael . vancanneyt
On Tue, 30 Nov 2010, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Seems Delphi XE has deprecated all separate variables, and after ten years did the same as FPC, use an absolute trick. And of course they named it differently (FPC: defaultformatsettings Delphi:

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > > > Seems Delphi XE has deprecated all separate variables, and after ten years > > did the same as FPC, use an absolute trick. And of course they named it > > differently (FPC: defaultformatsettings Delphi: formatsettings) > > Oh well, this is

Re: [fpc-devel] defaultformatsettings

2010-11-30 Thread Thaddy
On 29-11-2010 20:31, Sven Barth wrote: You are aware that I'm talking about "object" (the old TP style OOP) not "class" (the Delphi style OOP)? "object" is deprecated in Delphi since I don't know how long, but in FPC it's still maintained and even extended. But what do you mean with "elegan

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: > 30.11.2010 1:23, Marco van de Voort wrote: > > > Like anything new in Delphi nowadays, it is a record-with-some-helpers > > Time to implement this kind of records in FPC? If generics are more mature, we are going to need it. E.g. I'm thinking of par

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Paul Ishenin
30.11.2010 1:23, Marco van de Voort wrote: Like anything new in Delphi nowadays, it is a record-with-some-helpers Time to implement this kind of records in FPC? I tried once but failed because of big changes they require. Best regards, Paul Ishenin __

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Paul Ishenin
30.11.2010 2:31, Sven Barth wrote: You are aware that I'm talking about "object" (the old TP style OOP) not "class" (the Delphi style OOP)? "object" is deprecated in Delphi since I don't know how long, but in FPC it's still maintained and even extended. In delphi it is still maintained and even

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Michael Van Canneyt
On Mon, 29 Nov 2010, Marco van de Voort wrote: Seems Delphi XE has deprecated all separate variables, and after ten years did the same as FPC, use an absolute trick. And of course they named it differently (FPC: defaultformatsettings Delphi: formatsettings) Oh well, this is an easy one, for

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Sven Barth
On 29.11.2010 19:55, Thaddy wrote: On 29-11-2010 19:33, Sven Barth wrote: Just thinking: wouldn't objects in FPC achieve the same as records-with-methods in Delphi? If objects would be extended with "sealed" even the "sudden vmt" problems mentioned some time ago would be gone with simple object

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Thaddy
On 29-11-2010 19:33, Sven Barth wrote: Just thinking: wouldn't objects in FPC achieve the same as records-with-methods in Delphi? If objects would be extended with "sealed" even the "sudden vmt" problems mentioned some time ago would be gone with simple objects-simulating-delphi-records-with-

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Marco van de Voort
In our previous episode, Sven Barth said: > > > Like anything new in Delphi nowadays, it is a record-with-some-helpers > > Just thinking: wouldn't objects in FPC achieve the same as > records-with-methods in Delphi? If objects would be extended with > "sealed" even the "sudden vmt" problems men

Re: [fpc-devel] defaultformatsettings

2010-11-29 Thread Sven Barth
On 29.11.2010 19:23, Marco van de Voort wrote: Seems Delphi XE has deprecated all separate variables, and after ten years did the same as FPC, use an absolute trick. And of course they named it differently (FPC: defaultformatsettings Delphi: formatsettings) Sigh... always the same -.- Like

[fpc-devel] defaultformatsettings

2010-11-29 Thread Marco van de Voort
Seems Delphi XE has deprecated all separate variables, and after ten years did the same as FPC, use an absolute trick. And of course they named it differently (FPC: defaultformatsettings Delphi: formatsettings) Like anything new in Delphi nowadays, it is a record-with-some-helpers ___