Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

m2 working group

1 view
Skip to first unread message

Damon nomad Poole

unread,
Oct 29, 1986, 5:57:21 PM10/29/86
to

I would like to make the following comments on the report released by
the Modula II working group:

WG084: Good thinking, there are cases where you want to define something but
not export it. The programmer should have TOTAL control over exporting.

WG102: typename(expression) should not be referred to as coercing.

WG115: Type transfer and type conversion should remain separate.

WG117: How about a second parameter for HIGH to indicate the desired array
index?

WG120: Could some one explain the need for this??

Other comments:

If strings are defined as arrays of char, then assignment of strings of
unequal size should not be allowed. Such assignment would be inconsistent
with normal array usage. How about partial assignment of one array to another?
No, only arrays of equal size should be allowed.

'StringTerminator' is an EXCELLENT idea, but since the current terminator
is 'nul' and 'nul' is used so frequently in string handling, a shorter name
should be adopted.

Adding a new 'string' type disregards the handling of arrays already
available. Why complicate the job of the compiler with a new standard type?
One of the biggests idea behind Modula II is simplification of compilation.
That's why all of the I/O is in separately compiled modules, aside from the
portability considerations. Just look at the grammar for M2: 97 lines com-
pared with how many hundred for Pascal?? Let's not come out with "Modula II,
the common man's Ada!" YUCK!

I totally agree with Richard Pattis' comments about opaque types. Re-
quiring an opaque type which is actually of type INTEGER to be a pointer to
an integer would be a mistake. Incidentally: "Long live the ADT!"

Damon "nomad" Poole

P.S. - I am a senior at the University of Vermont, and am trying to get
Modula II introduced into some of the courses here. Could anyone suggest
an alternative to Logitech's M2 for the PC? I am very pleased with their
product, but it doesn't fit on two disks conveniently and would complicate
the life of PC users who don't have Hard Disks. Thank-You in advance.

0 new messages