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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bf9d4ba0cfd8cb6 X-Google-Attributes: gid103376,public From: Hyman Rosen Subject: Re: Announce: OpenToken 2.0 released Date: 2000/02/02 Message-ID: #1/1 X-Deja-AN: 580891321 Sender: hymie@calumny.jyacc.com References: <3890C62B.18309585@telepath.com> <876unj$jcs$1@nnrp1.deja.com> <87799k$aai1@news.cis.okstate.edu> X-Complaints-To: abuse@panix.com X-Trace: news.panix.com 949515290 3399 209.49.126.226 (2 Feb 2000 18:14:50 GMT) Organization: PANIX Public Access Internet and UNIX, NYC NNTP-Posting-Date: 2 Feb 2000 18:14:50 GMT Newsgroups: comp.lang.ada Date: 2000-02-02T18:14:50+00:00 List-Id: Brian Rogoff writes: > True, though the high falutin thing is more general and much less prone to > error since it expresses the intent clearly. Its also easily expressible > in C++ (your favorite language?) and other languages which have some form > of parametric polymorphism and variant types. I suppose you can do it in > Eiffel too but faking variants (tagged unions) with classes is an extra > level of ugliness IMO. Yup (C++). I've seen it referred to as "Fallible". I've also seen an amusing variant which forces you to test error return codes from functions. The function returns a "MustRead" object, which will throw an exception if it is destructed before the value it holds is extracted.