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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Thu, 24 Apr 2014 20:22:24 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <1ehc8moozpxnj$.1twbrsmoobjry.dlg@40tude.net> <63812656-3d79-4330-8b02-1836f3669b00@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1398388945 27102 69.95.181.76 (25 Apr 2014 01:22:25 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 25 Apr 2014 01:22:25 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Original-Bytes: 3106 Xref: number.nntp.dca.giganews.com comp.lang.ada:186076 Date: 2014-04-24T20:22:24-05:00 List-Id: "björn lundin" wrote in message news:cdd237eb-7cb1-404f-b18e-695cef9f2f73@googlegroups.com... Den onsdagen den 23:e april 2014 kl. 22:28:29 UTC+2 skrev Randy Brukardt: ... >> BTW, your proposal is a lot like the way stream attributes work, and that >> has proven to be a massive can-of-worms. The entire mess about >> availability >> of stream attributes comes about because of the ability of different >> views >> to have a different ideaa of whether an attribute is legal or not. This >> is >> not a trivial idea (nor is the one in AI12-0020-1). > >I do not see the connection. Is it legal to use T'Image(Value) >then why would not Value'Image be valid? >It seems (to me) that gnat did figure that out, with Value'Img Sorry, I was talking about the idea of user-defined 'Image for record types. That's currently not legal for T'Image(Obj), so it's not going to be legal for Obj'Image either. To make it legal is somewhat a can of worms, because visibility gets entwined -- especially if any automatic composition is provides (something I would like to see, otherwise there is little need for it to be an attribute). >> (Also note that providing 'Image implies providing a matching 'Value, >> just >> like providing 'Write implies providing 'Read. 'Value is a lot messier >> than >> 'Image, in general.) > >I can see that. But I suggested Img/'Image only. Not 'Value. If one supplies user-defined 'Image, we'd pretty much have to support user-defined 'Value as well. (You wouldn't have to use it, of course). It's rare that only one way I/O is needed. Of course, this ups the effort for composition a lot. I don't think I could support user-defined 'Image without user-defined 'Value -- it seems asymetric to me. Randy.