🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #213

Re: Can you nest subroutines in C?

#213
From: Stephen Orr
Date: Tue, 27 Jun 1989 16:06
19 lines
1441 bytes
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
Technical Details
Message-ID: <14753@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!rose!sjorr
References: <4470@crash.cts.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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