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 documentation files

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; {$IFDEF FPC}

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 -

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 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. Be a

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 function

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 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 vars? Same answer.

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 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 possible? What about class vars?

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

[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

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 group of