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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7816de9c00c8d02a X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Simpler question, create instance of unknown tag Date: 1996/03/15 Message-ID: #1/1 X-Deja-AN: 143316988 references: organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-03-15T00:00:00+00:00 List-Id: Scott asked: " Can one use an Ada.Tags.Tag value (call it a meta-type) and dynamically use it to create a concrete object where the new object'Tag = this_tag_value The compilers definitely can do this (for the Input implementation) but can us mortals do it?" No, there is no way to do it, and I have found several times that this is a minor irritation. For the most part, GNAT translates the stream attributes into legitimate lower level Ada, but it can't do that for Input (see GNAT sources for details on the very interesting "kludge" needed to implement this feature). It's hard to think of a nice syntax for adding this to the language?