[fpc-pascal] Namespaces Support

Martin Schreiber mse00000 at gmail.com
Mon Oct 28 16:31:02 CET 2013

On Monday 28 October 2013 13:10:04 Dmitry Boyarintsev wrote:

> > I have, for years, many units that have the prefix 'M'. So I have
> > MClasses, MCore, MTasks, MSystem, etc.
> > Now MSEgui (by Martin Schreiber) introduced a mclasses unit -- your
> > own implementation of classes unit -- and I can not use both units in
> > the same project. :(
> So was the issue fixed?
> I'd suggest to renamed your MClassess to MDgClasses or not to use MSEgui at
> all.

I am strongly against this last solution. ;-)

> The best approach here is to rename only 1 collision at a time - at 
> least this is what I would do. The fix is pretty easy - renaming the file
> itself and all uses section of units that are using it. (prevents updating
> to D2010 for namespaces)
> I doubt that Martin would agree to rename his MClasses to MSEClasses, since
> more people is using the library (that's my guess).
There is a mseclasses unit in MSEgui already. The "mse" prefix is used for 
MSEgui units, "m" prefix is used for forked FPC units. Maybe it should be 
changed to "mfp" or the like. Marcos, what do you think? FPC AFAIK does not 
support unit alias option so it will break existing code.


More information about the fpc-pascal mailing list