[fpc-pascal] How choose units names?
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Jul 22 18:21:25 CEST 2010
On 22 July 2010 14:03, Marcos Douglas wrote:
>
> The Pascal programmers has dislike "_" character, maybe just for
> constants, I think.
I have been told that by a few, but I really don't know why they
dislike it. I've gotten used to it rather quickly and use it more
often now, even for small tests apps. eg: In fpGUI there is no extra
"object" file for UI Forms - fpGUI only uses a single .pas file (no
extensions like *.lfm or *.xfm or *.frm) , so I prefix a unit that
contains a Form declaration with 'frm_'. This works great for me.
> Yes, work for them... but the namespaces is very large in Java or C#.
> I like use, some times, the syntax: unit.function.
The more I think about it, the more I think Java had a good idea with
directories as part of the namespace as well. This allows you to
create code based on your companies domain name - and will not clash
with others. Sometimes I with Object Pascal had something like that
too.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list