Re: [fpc-pascal] class constants

2008-01-24 Thread Vinzent Hoefler
On Thursday 24 January 2008 20:27, Marco van de Voort wrote: > > On 24 Jan 2008, at 19:45, Marco van de Voort wrote: > > >> constants. > > > > > > A constant is already in a scope, the unit. > > > > So are constants local to a function. Being able to restrict the > > scope to a certain function or

[fpc-pascal] Multiple inheritance is more powerful than Pascal's interfaces ?

2008-01-24 Thread Andrey Gusev
This question was posted to fpc-other, yesterday, but seems wrongful, in subject appropriation sense to that maillist. === I wish to introduce some additional (and general) functional to an existing (and foreign) freepascal's unit. I wouldn't to introduce any my own code to that foreign mo

Re: [fpc-pascal] class constants

2008-01-24 Thread Jonathan Benedicto
Marco van de Voort: Class constants add the ability to provide scoped, "namespaced" constants. A constant is already in a scope, the unit. The unit scope is a very open scope. Via class constants, one gets private, protected and public scoping for constants, all of which are essential scope

Re: [fpc-pascal] class constants

2008-01-24 Thread Peter Vreman
> Marco van de Voort wrote: >>> Marco van de Voort wrote: > Does FPC support class constants, and if it doesn't, are there any plans > to add this support? Have a look at http://www.freepascal.org/faq.var#extensionselect The question would be "what would make this possib

Re: [fpc-pascal] class constants

2008-01-24 Thread Marc Weustink
Marco van de Voort wrote: Marco van de Voort wrote: Does FPC support class constants, and if it doesn't, are there any plans to add this support? Have a look at http://www.freepascal.org/faq.var#extensionselect The question would be "what would make this possible?" What about class vars? S

Re: [fpc-pascal] fpc book :)

2008-01-24 Thread Felipe Monteiro de Carvalho
On Jan 24, 2008 9:26 PM, Anthony W.Henry <[EMAIL PROTECTED]> wrote: >Suggestion: Perhaps this is worthy of a News item > on the FreePascal Web Page. Better wait until it's ready. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] fpc book :)

2008-01-24 Thread Anthony W.Henry
On Thu, 2008-01-24 at 15:11 -0500, Anthony W.Henry wrote: > I don't mean to step on Jeff Duntemann's toes but it > looks like he is going to release that book. > > Read his blog entry for Jan 24th. > > http://www.duntemann.com/Diary.htm > > > Anthony Suggestion: Perhaps this is worthy of a

[fpc-pascal] fpc book :)

2008-01-24 Thread Anthony W.Henry
I don't mean to step on Jeff Duntemann's toes but it looks like he is going to release that book. Read his blog entry for Jan 24th. http://www.duntemann.com/Diary.htm Anthony ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

Re: [fpc-pascal] class constants

2008-01-24 Thread Jonas Maebe
On 24 Jan 2008, at 20:27, Marco van de Voort wrote: On 24 Jan 2008, at 19:45, Marco van de Voort wrote: A constant is already in a scope, the unit. So are constants local to a function. Being able to restrict the scope to a certain function or group of functions is nevertheless useful. T

Re: [fpc-pascal] class constants

2008-01-24 Thread Marco van de Voort
> On 24 Jan 2008, at 19:45, Marco van de Voort wrote: > >> constants. > > > > A constant is already in a scope, the unit. > > So are constants local to a function. Being able to restrict the > scope to a certain function or group of functions is nevertheless > useful. To be honest, if we woul

Re: [fpc-pascal] class constants

2008-01-24 Thread Jonas Maebe
On 24 Jan 2008, at 19:45, Marco van de Voort wrote: Henry Vermaak wrote: I'm not sure what you mean - do you mean would I be willing to write the support myself? i think he's asking what the use of it is. number 2 under the link he gave. Oh, ok. Well, I'll try to summarize: Class co

Re: [fpc-pascal] class constants

2008-01-24 Thread Marco van de Voort
> Henry Vermaak wrote: > >> I'm not sure what you mean - do you mean would I be willing to write the > >> support myself? > > > > i think he's asking what the use of it is. number 2 under the link he > > gave. > > Oh, ok. Well, I'll try to summarize: > > Class constants add the ability to provi

Re: [fpc-pascal] class constants

2008-01-24 Thread Jonathan Benedicto
Henry Vermaak wrote: I'm not sure what you mean - do you mean would I be willing to write the support myself? i think he's asking what the use of it is. number 2 under the link he gave. Oh, ok. Well, I'll try to summarize: Class constants add the ability to provide scoped, "namespaced" con

Re: [fpc-pascal] class constants

2008-01-24 Thread Henry Vermaak
On 24/01/2008, Jonathan Benedicto <[EMAIL PROTECTED]> wrote: > > I'm not sure what you mean - do you mean would I be willing to write the > support myself? i think he's asking what the use of it is. number 2 under the link he gave. henry ___ fpc-pascal

Re: [fpc-pascal] class constants

2008-01-24 Thread Jonathan Benedicto
Marco van de Voort wrote: Does FPC support class constants, and if it doesn't, are there any plans to add this support? Have a look at http://www.freepascal.org/faq.var#extensionselect The question would be "what would make this possible?" Hi Marco, I'm not sure what you mean - do you mean

Re: [fpc-pascal] class constants

2008-01-24 Thread Marco van de Voort
> Marco van de Voort wrote: > >> Does FPC support class constants, and if it doesn't, are there any plans > >> to add this support? > > > > Have a look at > > http://www.freepascal.org/faq.var#extensionselect > > > > The question would be "what would make this possible?" > > What about class v

Re: [fpc-pascal] class constants

2008-01-24 Thread Joao Morais
Marco van de Voort wrote: Does FPC support class constants, and if it doesn't, are there any plans to add this support? Have a look at http://www.freepascal.org/faq.var#extensionselect The question would be "what would make this possible?" What about class vars? ___

Re: [fpc-pascal] class constants

2008-01-24 Thread Joao Morais
Leonardo M. Ramé wrote: With your response I assume he meant something like "static attributes" when he said "class constants". Yup. A class variable is another matter, which afaik cannot be reached with one class per unit approach. --- Joao Morais <[EMAIL PROTECTED]> wrote: A class fu

Re: [fpc-pascal] class constants

2008-01-24 Thread Leonardo M. Ram
With your response I assume he meant something like "static attributes" when he said "class constants". --- Joao Morais <[EMAIL PROTECTED]> wrote: > A class function would be a better approach. > >

Re: [fpc-pascal] class constants

2008-01-24 Thread Joao Morais
Leonardo M. Ramé wrote: Jonathan, I never needed such type of feature, a propossed solution is to create one unit per class, and declare your constants in the implementation section of each unit. A class function would be a better approach. Example: unit People interface type TPeople

Re: [fpc-pascal] class constants

2008-01-24 Thread Marco van de Voort
> > Does FPC support class constants, and if it doesn't, are there any plans > to add this support? Have a look at http://www.freepascal.org/faq.var#extensionselect The question would be "what would make this possible?" ___ fpc-pascal maillist - fp

Re: [fpc-pascal] problem with interface (OOP not widget)

2008-01-24 Thread Paul Nicholls
Hi Bee, perhaps you could try using {$MODE Delphi} instead of {$MODE OBJFPC} since you seem to want Delphi compatibility. cheers, Paul On 23/01/2008, Bee <[EMAIL PROTECTED]> wrote: > > Hi all, > > I got problem with the code below. > > --->8--- begin code --->8--- > > program test_intf_query; > >

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-24 Thread Adrian Maier
On Jan 23, 2008 5:01 PM, Joost van der Sluis <[EMAIL PROTECTED]> wrote: > Op woensdag 23-01-2008 om 12:35 uur [tijdzone +], schreef Chris > Kirkpatrick: > > > I have been given commit access to the /docs/xml/lcl/ directory in the > > lazarus SVN tree. At present the SQLDb and fcl-db documentati