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.8 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,745ecf6266b2fdbf X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,745ecf6266b2fdbf X-Google-Attributes: gid109fba,public X-Google-Thread: 100850,745ecf6266b2fdbf X-Google-Attributes: gid100850,public X-Google-Thread: 103376,745ecf6266b2fdbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-11 17:30:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!news-out.visi.com!hermes.visi.com!gemini.plethora.net.POSTED!not-for-mail X-Old-trace: 1044974429 reader1.ash.ops.us.uu.net 9592 204.253.250.10 In-Reply-to: Cache-Post-path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com Content-Transfer-encoding: 7bit References: X-Accept-language: en-us, en Content-Type: text/plain; charset=us-ascii; format=flowed Subject: Re: [ANN] an EBNF parser and coding pattern tool (LGPL) From: Hyman Rosen Organization: KBC Financial Products X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Return-Path: Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030130 Newsgroups: comp.lang.c.moderated,comp.lang.ada,comp.lang.c,comp.lang.c++ Message-ID: Originator: clcm@plethora.net (Comp Lang C'Moderated) Date: 12 Feb 2003 01:30:42 GMT NNTP-Posting-Host: 441a38ab.news.plethora.net X-Trace: 1045013442 gemini.plethora.net 79564 clcm@205.166.146.1 X-Complaints-To: abuse@plethora.net Xref: archiver1.google.com comp.lang.c.moderated:7419 comp.lang.ada:34011 comp.lang.c:172693 comp.lang.c++:202595 Date: 2003-02-12T01:30:42+00:00 List-Id: Cedric LEMAIRE wrote: > The C++ compiler doesn't give you introspection to implement C++ > templates that work on the composition of a class. Yes, this is true. To get this would require support from the compiler, and I imagine would look something like this - the result of introspect for some type T would be a class with informative members, some of which would be like Alexandrescu's type lists that would carry member and base class information and could be processed recursively by other templates. We would also want an equivalent dynamic interface, so that we could take a polymorphic pointer or reference and deal with its introspection at runtime. -- comp.lang.c.moderated - moderation address: clcm@plethora.net