Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Marc Weustink
Martin Schreiber wrote: On Friday 11 August 2006 13.58, Mattias Gaertner wrote: On Fri, 11 Aug 2006 13:42:49 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the cod

Re: [fpc-pascal] Compiling for SPARC

2006-08-11 Thread Mark Morgan Lloyd
Jonas Maebe wrote: > Internally, the compiler uses a shortstring (max 255) characters to > build the "ar" command line. It currently passes three file names at > a time to "ar", so the currently max is about 80 characters per dir > +filename. Executive summary: This fails when the longest filenam

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Graeme Geldenhuys
On 8/11/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: Thanks for the good example. With the protected method you can easily do dangerous things, like adding an action twice or forgetting to remove it. With the 'protected' AddAction you could do such things only with dirty tricks like the abo

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Mattias Gaertner
On Fri, 11 Aug 2006 15:45:00 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > On 8/11/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > > Where do you read here anything about 'current instance'? > > Maybe not in that snippet of text, but I read it somewhere... ;-) :) > > And it was ve

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Graeme Geldenhuys
On 8/11/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: Where do you read here anything about 'current instance'? Maybe not in that snippet of text, but I read it somewhere... ;-) And it was very Delphi compatible. I mean, how many Delphians noticed the difference at all? It didn't hurt an

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Alexandre Leclerc
2006/8/11, Mattias Gaertner <[EMAIL PROTECTED]>: On Fri, 11 Aug 2006 14:49:16 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > On 8/11/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > It seems normal to me that it is not just the current instance. You KNOW this > > method is there,

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Mattias Gaertner
On Fri, 11 Aug 2006 14:49:16 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > On 8/11/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > It seems normal to me that it is not just the current instance. You KNOW > > this > > method is there, in a descendent, so it seems logical that you

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Graeme Geldenhuys
I managed to Copy and Paste the text, for thouse that can't view the attached image from my previous post... --- A private member is invisible outside of the unit or program where its class is declared. In other words, a private method cannot be called from another module,

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Graeme Geldenhuys
On 8/11/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: It seems normal to me that it is not just the current instance. You KNOW this method is there, in a descendent, so it seems logical that you know that it exists for another instance as well. Coming from a Delphi background, I disagree

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Martin Schreiber
On Friday 11 August 2006 13.58, Mattias Gaertner wrote: > On Fri, 11 Aug 2006 13:42:49 +0200 > > Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > Mattias Gaertner wrote: > > > Recently the behaviour of the 'protected' keyword has changed in fpc > > > 2.1.1. Now I wonder how can I fix the code, that

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Michael Van Canneyt
On Fri, 11 Aug 2006, Florian Klaempfl wrote: Michael Van Canneyt wrote: On Fri, 11 Aug 2006, Florian Klaempfl wrote: Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the code, that depends on this. Redesign

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Mattias Gaertner
On Fri, 11 Aug 2006 13:42:49 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. > > Now I wonder how can I fix the code, that depends on this. > > Redesign :) Of FPC? Naaah, too much work. ;)

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Florian Klaempfl
Michael Van Canneyt wrote: On Fri, 11 Aug 2006, Florian Klaempfl wrote: Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the code, that depends on this. Redesign :) I have some base classes, that defines meth

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Jonas Maebe
On 11 aug 2006, at 13:35, Mattias Gaertner wrote: I have some base classes, that defines methods to let derived classes interact. These methods should not be accessed directly from the outside, so they are protected. But this does not work any longer. Of course I can safely typecast, but f

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Michael Van Canneyt
On Fri, 11 Aug 2006, Florian Klaempfl wrote: Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the code, that depends on this. Redesign :) I have some base classes, that defines methods to let derived classes i

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Florian Klaempfl
Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the code, that depends on this. Redesign :) I have some base classes, that defines methods to let derived classes interact. These methods should not be accessed dire

[fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Mattias Gaertner
Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the code, that depends on this. I have some base classes, that defines methods to let derived classes interact. These methods should not be accessed directly from the outside, so they are protec

Re: [fpc-pascal] TPLY

2006-08-11 Thread Marco van de Voort
> Some wish. Please change constant "max_elems" in unit tply\LexBase.pas to > 1024. Done in trunk (to 1000 actually) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] TPLY

2006-08-11 Thread Aleksey Y. Ulasevich \(STAKANOV\)
Some wish. Please change constant "max_elems" in unit tply\LexBase.pas to 1024.   Thanks   Aleksey Y. Ulasevich (STAKANOV)icq:26493224 http://stakanov.narod.ru ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] DOS Timer Interrupt, serial Interrupt

2006-08-11 Thread Lubomír Čabla
Hello,   solution you can find in file "c:\pp\source\docs\go32ex\intpm.pas".Best regards  -- Lubomir Cabla/CBLWeb page : http://www.hdat2.com/Web forum: http://www.getphpbb.com/phpbb/index.php?mforum=lcabla { This example shows how to redirect a software interrupt by changing the protected mode ha