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: How come Ada isn't more popular? References: <1169636785.504223.139630@j27g2000cwj.googlegroups.com> <45b8361a_5@news.bluewin.ch> <3pejpgfbki.fsf@hod.lan.m-e-leypold.de> <1ic9j6bmbl0ik.gvgqhl1ixvxk$.dlg@40tude.net> From: Markus E Leypold Organization: N/A Date: Wed, 07 Feb 2007 10:42:01 +0100 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:vkdZuDtwhN3/racWzx1BbtsiaJI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.241.241 X-Trace: news.arcor-ip.de 1170841014 88.72.241.241 (7 Feb 2007 10:36:54 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news4.google.com!news2.google.com!news3.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:9104 Date: 2007-02-07T10:42:01+01:00 List-Id: Maciej Sobczak writes: > Dmitry A. Kazakov wrote: > >> For handling cycles there are weak pointers. > > Not only. Not at all you wanted to say. > If you have cycles, then you'd better rethink the design. let rec fac n = if n = 0 then 1 else n * (fac (n-1));; a) closure b) cycle :-). A lot of OO models with callback also require cycles. E.g. A knows B and B registers a callback with A in certain situations. > The difference is between a) graph treated as a mesh (or mess) of > nodes which "own" each other and b) graph treated as a collection of > nodes. > The former might have ownership cycles between nodes, but not the > latter, where ownership is an acyclic relation between graph and nodes. > I agree that this kind of restructuring is not always possible, but ^^^^^^^^^^^^^^^^^^^^^ !!. Regards -- Markus