Re: missing include by compiler

From: David Ham (d.a.ham_at_citg.tudelft.nl)
Date: 04/08/04


Date: Thu, 8 Apr 2004 14:48:12 +1000

On Wed, 7 Apr 2004 22:52:22 -0500
"Charles Russell" <STOPworworSPAM@bellsouth.net> wrote:

> Another wish for my Christmas list: some way to assign a name to a
> block of code and reference it by name as in pascal. When the
> contents of a block if become too long to fit in one screen, in order
> to keep the control flow readable I often put the block in an include
> file with a meaningful name. The pascal way seems better to me. This
> is also the easiest way I know to handle a block that you want to
> optionally comment in/out.
>
>

Doesn't an internal subroutine pretty much do this? All your variables
stay in scope due to host association and you can comment out the call
statement when needed. In addition you can have local variables if you
want them.

David



Relevant Pages

  • Re: VB 6.0 Desktop - Global Variables
    ... variables are not "slower" than local variables. ... wide scope", then this kind of variables only can live in a module. ... standard code module. ... without needing a reference to an object. ...
    (microsoft.public.vb.general.discussion)
  • Re: finalize() newbie question
    ... that is not a newbie question at all. ... Although the reference variable "a" has gone out of scope in the ... at the binary level local variables aren't ...
    (comp.lang.java)
  • Re: Newbie Q: Declare variable IN the loop or BEFORE the loop?
    ... when in fact it's the other local variables that they (via the ... anonymous delegates) reference that are of concern. ... and "expensive" are tied in lifetime by their being in the same scope, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Private variables question
    ... already in use at a higher scope. ... but if those three lines reference a variable that is declared ... Local variables are always named and referenced with a lower case ... help in such cases even if you have a prefix. ...
    (borland.public.delphi.non-technical)
  • Re: ~Destructor equivalent in java?
    ... Assuming myObj was the last reference to the object, ... is only "eligible for garbage collection" and in general, ... allow local variables to go ...
    (comp.lang.java.programmer)