Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!crash!pnet01!wade From: wade@pnet01.cts.com (Wade Bickel) Newsgroups: comp.sys.amiga.tech Subject: Re: Can you nest subroutines in C? Message-ID: <4536@crash.cts.com> Date: 2 Jul 89 12:16:27 GMT Sender: news@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 38 To Doug Merritt: Modula-2 and C both exist for the Amiga. The other "alternative" languages you mention either do not, or are not suitable for an serious work. Therefore I think we should constrain any discussion to these languages, possibly adding FORTH to the list. I've looked at the code genrated by the M2 compilers. The data for vars declared as locals are referenced off the stack, much like parameters. Not too big a hit in performance. I really did not intend to get into a language war. What I expected was to be told how to nest routines in C. Instead I was told that it cannot be done. As to your arguments about the M2 import mechanism, it is really not such a big deal, and is certainly superior to that allowed in C. Remember that pre-compiled files are a non-standard part of C, whereas they are standard in M2. However I agree that allowing the statement FROM Graphics IMPORT ALL; would be an improvement. I believe this may be added to M2Sprints next update, and may be added to Benchmark as well (I'll have to talk to Leon Frenkel). I am switching to C so I can move to C++. Hopefully C++ will be a win, though I wish Eiffel were available as I'd like to check it out. Have Fun, Wade. UUCP: {nosc ucsd hplabs!hp-sdd}!crash!pnet01!wade ARPA: crash!pnet01!wade@nosc.mil INET: wade@pnet01.cts.com