Path: utzoo!utgpu!watmath!watdragon!rose!sjorr From: sjorr@rose.waterloo.edu (Stephen Orr) Newsgroups: comp.sys.amiga.tech Subject: Re: Can you nest subroutines in C? Message-ID: <14753@watdragon.waterloo.edu> Date: 27 Jun 89 16:06:21 GMT References: <4470@crash.cts.com> Sender: daemon@watdragon.waterloo.edu Reply-To: sjorr@rose.waterloo.edu (Stephen Orr) Organization: U. of Waterloo, Ontario Lines: 19 In article <4470@crash.cts.com> wade@pnet01.cts.com (Wade Bickel) writes: > I hope there is a way to create nested functions in C. In general I find >I like C. Especially the flexability of conditionals afforded in pointer >manipulations, which is much more powerful than that allowed in Modula-2. Unless someone changed the definition of C that I learnt, all modules in 'C' have the same visibility even main(). This does not mean you can't get your peice of code running, it just means that the sub-module you would place with a larger module will be visible to all modules in the program. If you need to declare a function (parameters etc) you can use a 'C' prototype which is similar to pascal's forward (I don't know Modula but I gather it has some similarities to pascal...no flames, this is just a general blanket statement!) Sorry if you miss the ability to nest functions like this, it is a more structured approach to code, but it really doesn't effect functionality. - sjorr