[Lazarus] OT: Namespaces?

dmitry boyarintsev skalogryz.lists at gmail.com
Mon Apr 6 12:54:42 CEST 2009

> E.g. when you have multiple third-party units of the same name.

there's a good ways to handle this: rename your units (adding my
prefixed, like my_* to unit name). Usually 3d party units (usually
libraries) do this, prefixing their names.

after all, aliasing is dangerous, because, you might cause the worser
name conflict:

let's say you've bound some unit with alias name

  SomeUnit as "NewUnit";

but some 3d party unit uses different unit, that actually matches the
allias name:

how should compiler behave in this way? This case is worse, because
you'll have to study other lib for units name usage.


More information about the Lazarus mailing list