[fpc-devel] Less global variables
Andrew Brunner
andrew.t.brunner at gmail.com
Sat Oct 9 17:56:01 CEST 2010
LOL. I was talking about another way similar to c# namespaces.
On Oct 9, 2010, at 9:59 AM, Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> On Sat, 9 Oct 2010, Andrew Brunner wrote:
>
>> 2010/10/9 Adem <listmember at letterboxes.org>:
>>> Would you consider turning those structured types into objects?
>>>
>>> Properties with getter/setter pairs would make tracing (placing a breakpoint
>>> in the getter/sertter would help identify the caller) easier.
>>
>> The only problem with that line of thinking is that every time your
>> are calling that variable you are adding the extra steps. This is
>> impeding on performance of both compiling and maybe even execution.
>>
>> Java people love getters and setters. :-) I think namespaces are in
>> order though. A place to group variables (const and var, etc)
>> though. This way we can just point to this mechanism in stead of
>> having class creep.
>
> Sigh... Units are namespaces, since 25 years.
>
> Michael.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list