Article View: comp.lang.modula2
Article #4866Re^6: Error in PD Modula-2 compiler? Or just in my brain?
From: Federico Heinz
Date: Wed, 07 Jun 1989 08:49
Date: Wed, 07 Jun 1989 08:49
44 lines
2994 bytes
2994 bytes
kloppen@gmdzi.UUCP (Jelske Kloppenburg) writes:
>And I am waiting for apologies from Martin Neitzel.
Er... excuse me for getting in your way, but aren't you getting
carried away? This has been just an exchange of opinions, and a pretty
technical one at that. All arguments I've seen exposed (and I inspected
all of them pretty thoroughly, since I was the one who asked) were
pretty well thought out. Why make a personal question out of it? You
both presented your interpretations of the matter, and the message that
cleared the question was one describing the current ETH implementation,
not How It Should Be Done, since Wirth doesn't seem to know that himself
(and I don't think that's a blame). Don't get angry for nothing, both
your and Martin's contributions were insightfull and illuminating, and
are a good example of fuzziness in the Modula-2 definition (which I
hadn't noticed until now).
And talking definition: there is something I've been wondering some
time now, and I don't know whether it's been answered here before.
Wirth doesn't include any facilities to initialize structures at
compile-time, neither in Pascal nor in Modula (don't know about Oberon).
Not only that, there aren't any structured constants in either language.
I'm planning to program yet another uucp packet-driver protocol for the
ATARI ST in this summer holidays, and I selected C as the language of
choice exactly because it offers this capability (which is vital to my
approach to communication protocols). I'd rather program it in Modula,
but I can't think of a way of doing it without an endless string of
initialazation assignments, which consumes time (not that important, it's
done only once per run) and memory space (IMPORTANT). Most of the data
could be read from a file, but I also need initialized PROCEDURE
variables in the structure, and you can't file those out. Does anybody
out there know WHY there aren't any structured constants in Wirth's
languages? Is there any academic background to this limitation, is it
just to keep the compiler simple, or is it to keep the language
compatible with some (weird) machines that don't support an initialized
data space? An inquiring mind (if you can call mine that) wants to
know...
--
Federico Heinz "I can resist anything but temptation"
-- Oscar Wilde
From Europe: ...!mcvax!unido!tub!actisb!federico
From elsewhere: ...!uunet!pyramid!/
Technical Details
Message-ID:
<346@actisb.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!unido!tub!actisb!federicoReferences:
<340@actisb.UUCP> <1090@gmdzi.UUCP> <1231@infbs.UUCP> <345@actisb.UUCP> <1113@gmdzi.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!unido!tub!actisb!federico From: federico@actisb.UUCP (Federico Heinz) Newsgroups: comp.lang.modula2 Subject: Re^6: Error in PD Modula-2 compiler? Or just in my brain? Message-ID: <346@actisb.UUCP> Date: 7 Jun 89 08:49:11 GMT References: <340@actisb.UUCP> <1090@gmdzi.UUCP> <1231@infbs.UUCP> <345@actisb.UUCP> <1113@gmdzi.UUCP> Organization: Actis in Berlin GmbH, W. Germany Lines: 44