Article View: comp.sys.amiga.tech
Article #255Re: Can you nest subroutines in C?
From: Wade Bickel
Date: Thu, 29 Jun 1989 09:17
Date: Thu, 29 Jun 1989 09:17
52 lines
2681 bytes
2681 bytes
daveh@cbmvax.UUCP (Dave Haynie) writes:
>in article <4470@crash.cts.com>, wade@pnet01.cts.com (Wade Bickel) says:
>
>> Recently I switched from Benchmark Modula-2 to Lattice C. While
>
>Why did you switch? Something Lattice C does that cannot be performed in
>Modula-2, code efficiency or just for fun?
>
Hi Dave,
I switched mainly because an associate I'm working with is convinced
C is the "only" language for the Amiga, one of us had to change, and I figured
learning C is not a bad Idea, given the lean towards UNIX. Also I am very
interested in C++, and since I currently work on a 2500, I can handle the
compile speed.
So far I find the two languages remarkably similar. If you were to
mix 40% Modula-2 with 60% C you'd have a language far superior to either one.
I find that C leads to sloppy code, whereas M2 is missing some very
convienient features of C, such as pre-initialization. However, lack of the
ability to nest routines represents the first concept which I've discovered
which cannot be translated. C looses!
I do not understand why C does not support Nested routines. Perhaps
this will be added to the ANSI standard at some point in the future. The nice
thing is, backward compatability would not be an issue. But such things
happen slowly. So I guess I'll just work around the deficeincy, as this is
not something I must have to work in C. Perhaps when an optimizing M2
compiler comes out I'll switch back to M2.
>there's no source level debugger for Lattice C++ yet, while I just got a
>look at the new Source Level Debugger for Benchmark M2, and I like it
>better overall than Manx's SDB or Lattice's CodePRobe. TINAR, of course...
>--
>Dave Haynie Commodore-Amiga (Systems Engineering) "The Crew That Never Rests"
Yes, I was a tester for the Benchmark debbugger. It is nice, and
except for not having a break on variable option I agree that it seems much
cleaner than CPR, which I use alot. Such a shame, if I'd had it 3 weeks
earlier I'd probably still be useing Benchmark.
Thanks,
Wade.
UUCP: {nosc ucsd hplabs!hp-sdd}!crash!pnet01!wade
ARPA: crash!pnet01!wade@nosc.mil
INET: wade@pnet01.cts.com
Technical Details
Message-ID:
<4501@crash.cts.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!crash!pnet01!wadeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <4501@crash.cts.com> Date: 29 Jun 89 09:17:00 GMT Sender: news@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 52