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,HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,745ecf6266b2fdbf X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,745ecf6266b2fdbf X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,745ecf6266b2fdbf X-Google-Attributes: gid1014db,public X-Google-Thread: 100850,745ecf6266b2fdbf X-Google-Attributes: gid100850,public X-Google-ArrivalTime: 2003-02-11 17:30:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!gemini.plethora.net.POSTED!not-for-mail X-Old-trace: skates.gsfc.nasa.gov 1044983398 5028 128.183.235.92 (11 Feb 2003 17:09:58 GMT) References: Followup-To: comp.lang.ada Content-Type: text/plain; charset=us-ascii Subject: Re: [ANN] an EBNF parser and coding pattern tool (LGPL) X-Mailscanner: PASSED (v1.2.7 81403 h1BGuQ9B004948 mailbox6.ucsd.edu) From: Stephen Leake Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Return-Path: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Old-complaints-to: usenet@news.gsfc.nasa.gov Mime-Version: 1.0 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:49 GMT NNTP-Posting-Host: 441a38ab.news.plethora.net X-Trace: 1045013449 gemini.plethora.net 79564 clcm@205.166.146.1 X-Complaints-To: abuse@plethora.net Xref: archiver1.google.com comp.lang.c.moderated:7422 comp.lang.ada:34013 comp.lang.c:172696 comp.lang.c++:202597 Date: 2003-02-12T01:30:49+00:00 List-Id: codeworker@free.fr (Cedric LEMAIRE) writes: > How to write with C++ templates an "Object Unmarshaller", for > instance? I mean, something that reads the serialized content of an > object and that builds the corresponding object in memory. Be > careful! No intervention must be done on these objects in C++ to > facilitate their integration into the "unmarshaller". C++ templates can't do this. Neither do Ada generics. But I could easily write a code generator to do this with ASIS. Is there any language whose generics do this? > How to write an "Object Walker", something that enables to navigate > amongst the object attributes of the instances, for applying a task on > them (starting from a given object: to initialize all of them or to > serialize all of them or describing them in HTML to query the > application from a browser ...)? You've lost me here. If I need to navigate a tree, I first have to build the tree, presumably using a tree class. Then the tree class must provide a "walker" (aka "iterator"). Where do "generics" or "templates" come into it? -- -- Stephe -- comp.lang.c.moderated - moderation address: clcm@plethora.net