Re: [fpc-pascal] Free Pascal - Older Versions

2016-10-06 Thread Luiz Gonzaga de Oliveira Neto
First of all, thanks for Jonas and Sven for the fast answers. It's unfortunate that you can't provide older versions, but I understand the reasons exposed. Thanks for the suggestion, Sven, I'll check the errors I'm having and post them here for help. Best regards, On Thu, Oct 6, 2016 at 3:14 PM

Re: [fpc-pascal] Free Pascal - Older Versions

2016-10-06 Thread Sven Barth
Am 06.10.2016 17:04 schrieb "Luiz Gonzaga de Oliveira Neto" < luiz.g.oliveira.n...@gmail.com>: > Thanks in advance for any help! As Jonas said we can't provide you with any older compiler, but if you'd tell us what kind of errors you have maybe we can help you. Perhaps it's merely something were y

[fpc-pascal] test plz ignore

2016-10-06 Thread d . ioannidis
plz ignore -- Dimitrios Chr Ioannidis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Marcos Douglas
Hi Graeme, On Thu, Oct 6, 2016 at 12:05 PM, Graeme Geldenhuys wrote: > Hello Marcos, > > On 2016-10-06 at 11:41, Marcos Douglas wrote: > >> The COM and CORBA names, are both wrong. >> When you say COM, everybody thinks on Windows... that sad. > > > Yes, both names are horribly inaccurate. Unfortu

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Marcos Douglas
On Thu, Oct 6, 2016 at 11:57 AM, Graeme Geldenhuys wrote: > Hello Marcos, > > On 2016-10-06 at 11:25, Marcos Douglas wrote: > >> you need to declarate >> two variables to do one job. >> I don't like that and I think shouldn't be necessary. > > Well, to be fair, that example is not representative o

Re: [fpc-pascal] Free Pascal - Older Versions

2016-10-06 Thread Jonas Maebe
Luiz Gonzaga de Oliveira Neto wrote: > I've found some older versions in this > link: http://www.freepascal.org/down/old/down.var. But, for Win32, the > oldest version I've found was the 2.2.2. Is this the oldest version for > Win32? Is there a place where I could access even older versions of the

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
Hello Marcos, On 2016-10-06 at 11:41, Marcos Douglas wrote: > The COM and CORBA names, are both wrong. > When you say COM, everybody thinks on Windows... that sad. Yes, both names are horribly inaccurate. Unfortunately I don't see FPC developers rectifying that any time soon. :-/ Regards, G

[fpc-pascal] Free Pascal - Older Versions

2016-10-06 Thread Luiz Gonzaga de Oliveira Neto
Hello all, My name is Luiz and I'm a Masters student at Brazil. This is my first e-mail in this list. In my Masters research, I've acquired from the author some codes in Pascal, a language I've never worked with. I need to make some small modifications to the code and recompile it, but I'm not ha

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
Hello Marcos, On 2016-10-06 at 11:25, Marcos Douglas wrote: > you need to declarate > two variables to do one job. > I don't like that and I think shouldn't be necessary. Well, to be fair, that example is not representative of a real-world application. In a real-world app, I would not declare an

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Marcos Douglas
On Thu, Oct 6, 2016 at 7:36 AM, Graeme Geldenhuys wrote: > On 2016-10-06 02:49, Marcos Douglas wrote: >> I understand you, but reference counting help us to write a better >> code, more object-oriented. > > That's got nothing to do with reference counting functionality. I use > object-oriented cod

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Marcos Douglas
On Thu, Oct 6, 2016 at 7:30 AM, Graeme Geldenhuys wrote: > On 2016-10-05 16:26, Marcos Douglas wrote: >> So, I coded a new example — more simpler, I think — to demonstrate the same >> problem and prove that there is some wrong that is causing a memleak. > > And here is that example converted to us

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Marcos Douglas
On Thu, Oct 6, 2016 at 7:11 AM, Graeme Geldenhuys wrote: > On 2016-10-06 02:34, Marcos Douglas wrote: >> But, the result was the same, even using D7. >> So, is this by design? Sad... > > Sad and nasty indeed. But it seems it is “by design” or done for “Delphi > compatibility”. > > It would be inte

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Tony Whyman
On 06/10/16 11:08, Graeme Geldenhuys wrote: I've seem some COM Interface code where they had to resort to using raw Pointer types etc to try and avoid reference counting and causing unexpected memory leaks. I have also seen plenty of examples of poor coding with classes, but the fact that someon

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
On 2016-10-06 02:49, Marcos Douglas wrote: > I understand you, but reference counting help us to write a better > code, more object-oriented. That's got nothing to do with reference counting functionality. I use object-oriented coding practices all the time, but I don't need reference counting for

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
On 2016-10-05 16:26, Marcos Douglas wrote: > So, I coded a new example — more simpler, I think — to demonstrate the same > problem and prove that there is some wrong that is causing a memleak. And here is that example converted to use CORBA style interfaces and no memory leaks. Program output:

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
On 2016-10-06 02:34, Marcos Douglas wrote: > But, the result was the same, even using D7. > So, is this by design? Sad... Sad and nasty indeed. But it seems it is “by design” or done for “Delphi compatibility”. It would be interesting to know what Delphi developers think of this. You should post

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
On 2016-10-05 23:16, Tony Whyman wrote: > Used properly reference counted interfaces are very powerful and allow > for some very elegant programming. Do you complain about AnsiStrings? I have very powerful and elegant programming with CORBA interfaces too. ;-) Also as Martin mentioned, reference

Re: [fpc-pascal] A serious Memleak using delegates/implements (was: Delegate Interface class does not seem to be referenced counted)

2016-10-06 Thread Graeme Geldenhuys
On 2016-10-06 05:54, Martin Schreiber wrote: > Recently I had to revive my stone old AMD-K6 PC with Windows 95. What marvel, > that relict with its age-old applications provides a better user experience, > is snappier, more convenient and more productive than my newest Linux machine > with the m

Re: [fpc-pascal] Checking the validity of Format and friends at compile-time

2016-10-06 Thread Santiago A.
El 05/10/2016 a las 19:47, Michalis Kamburelis escribió: > 2016-10-05 9:00 GMT+02:00 Maciej Izak : >> 2016-10-05 4:32 GMT+02:00 Michalis Kamburelis : >>> For example, the call >>> >>> Format('%s', [123]) >> >> I have a small hint (instead of answer). We have in mORMot / NewPascal in >> SynCommons

Re: [fpc-pascal] Checking the validity of Format and friends at compile-time

2016-10-06 Thread Marco van de Voort
In our previous episode, Michael Schnell said: > > RTL not to mention that user code that uses "array of const" wouldn't > > necessarily benefit from it. > GNU C does check this when using printf() and friends, and rather > obviously the "array of const" is modeled after the C ellipse notation.