From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: GC in Ada References: <1169636785.504223.139630@j27g2000cwj.googlegroups.com> <3pejpgfbki.fsf@hod.lan.m-e-leypold.de> <45c99c24$1@news.post.ch> <45c9bdb8$1@news.post.ch> <45cad095$1@news.post.ch> From: Markus E Leypold Organization: N/A Date: Thu, 08 Feb 2007 10:33:58 +0100 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:EPZHTt45DN/c2Ml0QgsNQoEN5GQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.239.230 X-Trace: news.arcor-ip.de 1170926929 88.72.239.230 (8 Feb 2007 10:28:49 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:9185 Date: 2007-02-08T10:33:58+01:00 List-Id: Martin Krischik writes: > Markus E Leypold schrieb: > >> Martin Krischik writes: > >>> Maciej Sobczak schrieb: > >>> On my Weblogic course I could not stop shaking my head about all the >>> problems which brings the "all is pointer" concept of Java. > >> Fortunately you can ignore this "all is pointer" by exposing only a >> read-only interface to the client and leaving the rest to the GC > Only Java has no const keyword. It is supposed to get one but how long > until it is actually used? Excuse me, but ... "a read only interface" means: (a) make all field of objects private (b) allow access only my methods (c) provide only Get_*-methods, no Set_*-methods (a+b) is actually standard good practice in software engineering, since it allows to hide representation and allows for maintaining cached attributes/data (which direct access to fields won't allow). Regards -- Markus