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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,604e0f87aa06eab6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-25 12:22:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!spool0902.news.uu.net!not-for-mail Date: Tue, 25 Mar 2003 15:22:10 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030313 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Imitation is the sincerest form of flattery References: <1047665830.579605@master.nyc.kbcfp.com> <7eee7v4hpvj0i5s345uonlen5315rhiau8@4ax.com> <4dkea.75440$gi1.38045@nwrdny02.gnilink.net> <1048524746.273345@master.nyc.kbcfp.com> <1048530794.5794@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1048623730.801824@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1048623731 22541 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:35696 Date: 2003-03-25T15:22:10-05:00 List-Id: Dmitry A. Kazakov wrote: > Array is an old well known concept, which requires no baroque kinks. There are many old and well-known concepts. Good programming languages allow you to build them yourself instead of providing special and unique support. > Right, but not in C++, which is unable to handle unconstrained objects on > the stack. True enough for now. I suspect C++ will eventually adopt a form of C99's variable-length arrays, and then it will be possible. Where supported, something could probably be cobbled together with alloca. > But as you said it should not be slow. OO-style inheritance is the wrong concept for this. > your nasty proxy class will show itself. > you will have to make it derived Nope. The function will be a generic, instantiated automatically on the proxy class.