LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

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

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

Print Reply
Hans Aberg <[log in to unmask]>
Sun, 5 Dec 1999 23:54:46 +0100
text/plain (30 lines)
At 12:23 +0000 1999/12/04, Achim Blumensath wrote:
>I don't think that an object-oriented approach is appropriate for LaTeX.
>Objects are entities with an internal state capable of sending and
>responding to messages. Thus, they are active elements.

There are two separate aspects of what is called OOP  or object oriented
programming, one that the objects are dynamic (as you say), and another
that the objects constitute localized namespaces. OOP, which is
(originally) just an empirical notion does not require that the two aspects
be valid simultaneously.

I think I pointed that the dynamic aspect does not appear to make sense in
TeX. Therefore I concentrated on the static, namespace, aspect, which just
as templates just requires macro expansions.

But is not so easy to reject the idea that also the dynamic aspect of OOP
might have something corresponding in TeX -- the LaTeX templates already
have a notion of computing immediately or later. And selecting commands
based on type of an object is surely possible in the object model I
presented.

Anyway, this is a question of transport of ideas, and not a transport of
logical computer structures. Whatever happens in LaTeX will be on the terms
of LaTeX  and what is possible to do within the TeX program.

  Hans Aberg
                  * Email: Hans Aberg <mailto:[log in to unmask]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

ATOM RSS1 RSS2