LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Hans Aberg <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Wed, 27 Sep 2000 17:23:19 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
What has happened with the modules in LaTeX?

There is a simple module system that could implemented in TeX; the idea I
got from Haskell <http://haskell.org/>. The following targets the idea of a
module as a name separator, so that names do not clash. One can also think
of modules bringing about logical connections, which is not so much present
here (even though a name-space can help bringing about such logical
structure).

Names defined within the module <mod> gets names "<mod>.<name1>",
"<mod>.<name2>", ... Then one can define
   \export{<mod>}{<name1>, <name2>, ...}
for the names that are deemed to become of frequently used by the user of
the module.

A user can later write
   \import{<mod>}
in which case the names <name1>, <name2>, ... can be used instead of
<mod>.<name1>, <mod>.<name2>, ... -- To this one will have to add a system
resolving name conflicts in case more than one module is imported, and the
imports have name conflicts.

  Hans Aberg

ATOM RSS1 RSS2