[fpc-pascal] class constants

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jan 24 20:07:36 CET 2008


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 constants add the ability to provide scoped, "namespaced"  
>> 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.


Jonas



More information about the fpc-pascal mailing list