Article View: comp.lang.modula2
Article #2369Generic sets module. Anybody interested?
From: Richard Breuer
Date: Tue, 25 Jun 1991 12:33
Date: Tue, 25 Jun 1991 12:33
25 lines
1661 bytes
1661 bytes
During the last two years of Modula-2 programming I managed to create
a module called SETs which implements the concept of mathematical sets
in Modula-2. This means that sets may contain an arbitary number of elements
(just limited by the target machines heap).
Besides this SETs has the ability to store elements of arbitary Modula-2
data type (that's what I call 'generic'). All you have to do is to declare
a (so called) 'set class' for the data type you want to keep sets for.
This implies the restriction that one set may only contain elements of
one static data type. There are of course predefined set classes for all
the Modula-2 standard data type like CARDINAL, INTEGER, CHAR. So you may
use these type without any further 'work'.
So if there is some general interest in this module (please drop me a mail),
I will post it to this news group.
PS: There are currently three versions available. PLEASE SPECIFY THE ONE
YOU ARE INTERESTED IN (just write 1,2, or 3):
(1) for the m2c compiler on SUN/3 and SUN/4 (unix)
(2) for the Fitted Modula-2 compiler on PCs (tested on 286)
(3) for the Taylor Modula-2 compiler on PCs (tested on 286)
Each version comes with german/english comments and with/without
runtime error checking.
Technical Details
Message-ID:
<ricki.677853185@rwthi3>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!rwthinf!rwthi3!rickiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!rwthinf!rwthi3!ricki From: ricki@john.informatik.rwth-aachen.de (Richard Breuer) Newsgroups: comp.lang.modula2 Subject: Generic sets module. Anybody interested? Keywords: sets Message-ID: <ricki.677853185@rwthi3> Date: 25 Jun 91 12:33:05 GMT Sender: news@rwthinf.UUCP Lines: 25