Am 09.01.2011 19:56, schrieb Hans-Peter Diettrich:
Why this? Well, we would not need to use prefixes in the names of our
widgets. I could develop a widget called TEdit too, but using my own
unit.

All existing form objects are stored in Application.CustomForms[], and
their controls in Form.Controls. Likewise the class names are usable via
RTTI. Adding namespaces (or unit names) would require further table(s),
that do not yet exist (except perhaps in debug info).

You are aware that there is a "TObject.UnitName" in 2.4.2 now, which gets the unit name by default from the RTTI? (see http://wiki.freepascal.org/User_Changes_2.4.2#TObject_class_declaration )

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to