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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,e0a59694a441eb7b X-Google-Thread: 103376,e0a59694a441eb7b X-Google-Thread: fac41,e0a59694a441eb7b X-Google-Thread: 1108a1,e0a59694a441eb7b X-Google-Attributes: gid109fba,gid103376,gidfac41,gid1108a1,public X-Google-ArrivalTime: 2004-04-23 09:22:28 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.c++,comp.lang.ada,comp.lang.eiffel,comp.object Subject: Re: OOP Language for OS Development Date: Fri, 23 Apr 2004 16:22:27 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <95db0572.0404142153.431fd058@posting.google.com> <566e2bfb.0404181753.2844342f@posting.google.com> <4088D574.2020503@tele2.fr> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1082737347 14759 134.91.1.34 (23 Apr 2004 16:22:27 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 23 Apr 2004 16:22:27 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.c++:31296 comp.lang.ada:7427 comp.lang.eiffel:726 comp.object:11042 Date: 2004-04-23T16:22:27+00:00 List-Id: In comp.lang.ada Calum wrote: : I am in no doubt that Eiffel is cleaner safer language, however that's : not quite the same as power. : : So what can you express in Eiffel that cannot be expressed in C++? : [Actually, resolving name-clashes in multiple inheritance is one, : contracts is another.] But are these fundamentally difficult in C++, or : just a little uglier? How would you write "once" routines in C++? How about the fine grained visibility control (where each feature can be made visible to only a specified set of types)? : :>> Can for example Eiffel implement its own allocators, or is its type :>> system itself Turing complete (C++ templates)? :> :> :> Could you please re-formulate questions about allocators and type :> system? I do not understand what you mean, sorry. : : C++ allows you to specify where in memory an object resides. This is a : low-level feature that most people would not use, but gives C-like : performance since you can cache-localize data, and implement more : efficient memory managers where you know the allocation patterns. : : Are parameterized types in Eiffel as flexible as those in C++? They are different I think. Can you express deferred class C [P -> T] feature foo(x: P): P is deferred end end -- C in C++? Then there is currently a (justified) limitation in C++ with float parameters. This is not the case in Ada generics. georg