Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!lll-crg!nike!ll-xn!mit-amt!mit-eddie!genrad!decvax!mcnc!ncsu!uvacs!rwl From: rwl@uvacs.UUCP Newsgroups: net.lang.c Subject: Export/import for C? Message-ID: <640@uvacs.UUCP> Date: Sun, 13-Jul-86 10:13:43 EDT Article-I.D.: uvacs.640 Posted: Sun Jul 13 10:13:43 1986 Date-Received: Mon, 14-Jul-86 22:29:40 EDT References: <131@kaist.UUCP> <175@miduet.mifnet.gec-mi-ate.co.uk> Organization: U.Va. CS in Charlottesville VA Lines: 34 > I think C's usage of 'static', as applied to functions, to mean 'don't export' > is unfortunate. : > I would prefer the use of 'export' and 'import' as in Modula, with 'import' > replacing 'extern'. > The same arguments apply to variables as functions. : > Ok, it's going to mean more typing during initial coding. But how much > debugging time will it save you? *Anything* which encourages modular > programming has got to be a good idea. : > Jeremy Harris ...!mcvax!ukc!hrc63!miduet!jgh > (I don't speak for my employer) jgh@gec-mi-at.co.uk I can appreciate the aesthetics of export/import, but I don't think it would improve my coding. One of the reasons that I like C is the idea of having a grab-bag of functions at my disposal with the special exception of those which have been explicitly hidden from me via ``static''. The language is ``flat'': it provides for a set of functions which I organize to my liking. I definitely prefer this programming paradigm to the European style (a la Pascal, Modula2, Ada) which enforces it's own notion of structure at my expense. I suppose my attitude is that modular programming is not a ``good idea'' carved in stone; it should be applied as needed. No more, no less. Unlike some languages, C gives me the freedom to use my discretion. Though I didn't look at your path at first, the thing that crossed my mind while reading was that munging C in this way was down right un-American. :-) -- Ray Lubinsky University of Virginia, Department of Computer Science UUCP: ...!cbosgd!uvacs!rwl or ...!decvax!mcnc!ncsu!uvacs!rwl CSNET: rwl@virginia