Hallo Marcos,

Du schriebst am Tue, 12 Nov 2013 12:20:45 -0200:

> Yes. But the problem is if you have two units, both using the same
> name, and you want to use them at the same project.
> As I said before in official list, I have -- for many years -- units
> that have the prefix 'M' so, I have mclasse.pas, mtasks.pas, msystem,
> etc.
> You know that MSE sources have mclasses and others that using the
> prefix 'M'... do you see the problem now?
> 
> Namespaces, as I explained on official list, will allow the programmer
> set an 'alias' for units and use this name instead of the unit name.

ISO extended Pascal has a feature allowing the re-export of aliased symbols
from arbitrary compilation units (they're not named "unit" there).
It would amount to write an interface unit "use"ing some specific external
units, creating some declarations of new names aliasing the imported ones
and exporting those. The imported names cannot be seen external to this
interface unit, but are indirectly used through the aliases.
I think this is an elegant solution to the problem you mentioned above.
(Sadly, I had hardly an opportunity to use this system, as it was issued
for OS/2 only, and only shortly before that was obsoleted by its producer.)

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to