Article View: borland.public.jbuilder.java.language
Article #18003Re: Local procedures.
From: Steve Schafer (TeamB)
Date: Sun, 30 Aug 1998 00:00
Date: Sun, 30 Aug 1998 00:00
15 lines
1263 bytes
1263 bytes
On Sat, 29 Aug 1998 13:55:27 -0400, Art Nelson <art@vineyard.net> wrote: >My understanding is that Java does not support local procedures. I have >found local procedures are really handy because they allow you to beak >up a procedure with out cluttering up the rest of the program. Strictly speaking, Java doesn't have procedures at all. Everything is based on a class model, and all "procedures" are in fact methods of a class, so the notion of nested procedures isn't applicable. JDK 1.1 introduced the idea of "inner classes" (classes defined wholly within another class), and these inner classes have characteristics that are in some way analogous to nested procedures in other languages. -Steve
Technical Details
Message-ID:
<360c97d7.220708941@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35E8408E.71695BB2@vineyard.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,fb20456a429a878e X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: Local procedures. Date: 1998/08/30 Message-ID: <360c97d7.220708941@forums.borland.com> X-Deja-AN: 386201920 Content-Transfer-Encoding: 7bit References: <35E8408E.71695BB2@vineyard.net> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language