dev@ei.ecn.purdue.edu (Larry Weeks) (05/31/90)
Hello, I am interested in learning Modula-2. I already know 'C' rather well, and here that M-2 is an up-and-coming language... So, a few questions and requests. 1. Is there a freely available M-2 compiler available for Unix, preferably for BSD4.x? 2. Could somebody send me some sample M-2 code? 3. How does the language compare to C? In general. 4. Would someone recommend a good introductory text, generally available, and perhaps something along those lines available via FTP or email? Thanks a lot for any aid. Responses to email please, to cut down on repetition here... Larry Weeks -- Larry Weeks |"Take time to deliberate, but when the time for Purdue University | action has arrived, stop thinking and go in." Astro. Engineering | -- Napoleon Bonaparte dev@ecn.purdue.edu |"Education is a journey, not a destination."
dev@ei.ecn.purdue.edu (Larry Weeks) (05/31/90)
In article <1990May30.215438.12893@ecn.purdue.edu> dev@ei.ecn.purdue.edu (Larry Weeks) writes: >Hello, > > ... > Pardon the sometimes poor grammar... Slow line, in packets... :-) Larry -- Larry Weeks |"Take time to deliberate, but when the time for Purdue University | action has arrived, stop thinking and go in." Astro. Engineering | -- Napoleon Bonaparte dev@ecn.purdue.edu |"Education is a journey, not a destination."
Jon.Guthrie@p2.f70.n226.z1.fidonet.org (Jon Guthrie) (06/03/90)
> 1. Is there a freely available M-2 compiler available for Unix, > preferably for BSD4.x? I don't know. I'd like to ask the same thing about AT&T Unix System V. > 2. Could somebody send me some sample M-2 code? Well, I could, but let's hold off on that for a moment. > 3. How does the language compare to C? In general. It's MUCH better than C for large (>2000 lines or so) projects. The encapsulation is better integrated into the language and the abstraction is what you'd expect from something created by Wirth. On the downside: It isn't as portable, (the "standard library" isn't, standard, that is,) it isn't as common, and it's case-sensitive with all the keywords in UPPERCASE. (One note on the last bit: I have a _Journal of Pascal, Ada and Modula-2_ that has an article on a C-type preprocessor for Modula-2 that would eliminate that last complaint. Anybody else heard about it?) > 4. Would someone recommend a good introductory text, generally > available, and perhaps something along those lines available > via FTP or email? I use a little book called _Programming in Modula-2, Third, Corrected Edition_ by Niklaus Wirth. It's a little dry and the index is a joke, but it serves it's purpose. (It's the equivalent of K&R for C programmers.) > Thanks a lot for any aid. Responses to email please, to cut down > on repetition here... No email capability here. I'm on FidoNet. (Say, I _CAN_ respond to all the usenet stuff that's been imported lately, can't I? If I can't, then why are you bothering to import it?) ...You trust them with your fortunes, let them guard your lives -- uucp: uunet!m2xenix!puddle!226!70.2!Jon.Guthrie Internet: Jon.Guthrie@p2.f70.n226.z1.fidonet.org