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 13:13:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!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 20:13:19 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <95db0572.0404142153.431fd058@posting.google.com> <566e2bfb.0404181753.2844342f@posting.google.com> <4088D574.2020503@tele2.fr> <1082738747.300309@master.nyc.kbcfp.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1082751199 2583 134.91.1.34 (23 Apr 2004 20:13:19 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 23 Apr 2004 20:13:19 +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++:31321 comp.lang.ada:7432 comp.lang.eiffel:728 comp.object:11058 Date: 2004-04-23T20:13:19+00:00 List-Id: In comp.lang.ada Hyman Rosen wrote: : Georg Bauhaus wrote: :> How would you write "once" routines in C++? : : With a static method containing a static value, of course. So in the general case where the method will have (side) effects on object variables I use an if (once) {...} with a static bool once, I guess? Whatever suggests the necessity of ONCE in a language, if it is necessary then being able to write ONCE might have an advantage in my view. :> 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++? : : Sure. You just don't define the method, and if it gets used, : the linker will complain. So the compiler, compiling seperately, will not know which types can be passed to some_C.foo before the linker is run.