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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2078ce7aac45af5b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.79.138 with SMTP id j10mr3756675wix.1.1353487240644; Wed, 21 Nov 2012 00:40:40 -0800 (PST) Path: q13ni3800wii.0!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!backlog2.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada202X : Adding functors Date: Thu, 15 Nov 2012 10:27:58 +0100 Organization: cbb software GmbH Message-ID: <171o6kazlul7v$.ci06fwxk77ll.dlg@40tude.net> References: <0114d327-9f9f-4ad2-9281-56331d11a90c@googlegroups.com> <2bb9e5fa-04a2-4073-bca1-1739ce0580f1@googlegroups.com> <57bca956-2348-4825-8f5f-04fb91863696@googlegroups.com> <094f94ed-dbcc-4dba-bd9d-894a75f69037@googlegroups.com> <8373eaf3-5299-4bbb-a462-56d2d76d6333@googlegroups.com> <1na6brajyyab1.1m57ova8gzvwk$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 2064 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-11-15T10:27:58+01:00 List-Id: On Wed, 14 Nov 2012 13:31:53 -0800 (PST), Martin wrote: > On Wednesday, November 14, 2012 8:37:55 PM UTC, Dmitry A. Kazakov wrote: >> Because arrays do not have Perform operation, they do ()-operation. > > Yes, there was a decision at some early point in Ada's life to move away > from "[]" for array accessing to "()" - which seems to be a move to > deliberately make it look like a function call. Function call and array indexing are strictly same thing called mapping. So the decision was right. > Also, there are enumerate values which again are 'functions'...only not > really...now that's obfuscation! :-) Similarly, evaluation of a name into an object is a concept independent on how the object's value is evaluated, when or if. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de