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,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 10 Aug 2010 10:21:32 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <46866b8yq8nn$.151lqiwa0y2k6.dlg@40tude.net> <13b07f2c-2f35-43e0-83c5-1b572c65d323@y11g2000yqm.googlegroups.com> <13tpf7ya3evig$.h05p3x08059s$.dlg@40tude.net> <1omt2srxtpsga$.c3hbxthzo6cf.dlg@40tude.net> <1e4cch2df5uyb.18brqdd16dhv8.dlg@40tude.net> <14y70ke8am9qw$.2csc9eflvigg.dlg@40tude.net> <4c601b5c$0$7665$9b4e6d93@newsspool1.arcor-online.net> <9czktq4ntzq7.fhbsnocx0x4w$.dlg@40tude.net> <4c6030e3$0$7659$9b4e6d93@newsspool1.arcor-online.net> <4c6048fd$0$7663$9b4e6d93@newsspool1.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4c610c0d$0$6875$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 10 Aug 2010 10:21:33 CEST NNTP-Posting-Host: e3c08c46.newsspool2.arcor-online.net X-Trace: DXC=G>DFe9_H1dEE4ZB2flKORAA9EHlD;3YcB4Fo<]lROoRA8kFejVHX;:=UmCe>iLTUjk_kH5d=I X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13038 Date: 2010-08-10T10:21:33+02:00 List-Id: On 8/9/10 9:18 PM, Robert A Duff wrote: >> case {T0 x T1 x T3} is >> when ... => ... >> Experimenting further, what will be a useful type of >> case_statement_alternative's discrete choice list, then? >> One that can be explored programmatically? > > Any non-limited type, I guess. I was fancying effects that programmers might want to inject into the switching machinery of the case statement? In the sense of what I think they are calling aspect oriented programming. type C is ... record ... end record; type D is new C and Aspects with null record; -- for case -- or use aspect notation for D? x : D := (C with null record); case x is when D'(comp_1, ..., comp_n) => ... Generalizing, could we have aspects of types permitting the specification of effects to be triggered, for example when a primitive op is called? (Much like SNOBOL-4's TRACE feature works.) Georg