Article View: comp.lang.modula2
Article #2659Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)
From: Norman H. Cohen
Date: Fri, 27 Oct 1995 13:50
Date: Fri, 27 Oct 1995 13:50
21 lines
1675 bytes
1675 bytes
In article <EACHUS.95Oct25183836@spectre.mitre.org>,
eachus@spectre.mitre.org (Robert I. Eachus) writes:
|> Don't try to scare impressionable children. There are uses for
|> Unchecked_Conversion in Ada, especially in Ada 83, which have nothing
|> to do with either I/O or debuggers.
For example:
- Writing a hash function for pointers
- Providing multiple views of an imported non-Ada data structure,
defined with overlays, that is to be passed as a parameter
(parameter passing is not I/O!)
- Low level manipulations of the same word both as a single scalar
(e.g. an address) and as a sequence of bit fields (e.g. a segment
number, page number, and offset)
--
Norman H. Cohen ncohen@watson.ibm.com
Technical Details
Message-ID:
<46qo2r$nei@watnews1.watson.ibm.com>Path:
arc1-ca.pugleaf.net!watnews.watson.ibm.com!ncohenReferences:
<44hcri$rsm@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com> <45cj8d$red@ixnews3.ix.netcom.com> <DG8y40.BMz@world.std.com> <KANZE.95Oct11123925@slsvgqt.lts.sel.alcatel.de> <460ibq$b0j@reuters2.mitre.org> <cspt.1?4.30867CCE@giraffe.ru.ac.za> <4662pc$kmi@ubszh.fh.zh.ubs.com> <dewar.814190504@schonberg> <46kt1q$885@fred.netinfo.com.au> <EACHUS.95Oct25183836@spectre.mitre.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!watnews.watson.ibm.com!ncohen From: ncohen@watson.ibm.com (Norman H. Cohen) Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++,comp.lang.ada Subject: Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++) Date: 27 Oct 1995 13:50:19 GMT Organization: IBM T.J. Watson Research Center Distribution: world Message-ID: <46qo2r$nei@watnews1.watson.ibm.com> References: <44hcri$rsm@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com> <45cj8d$red@ixnews3.ix.netcom.com> <DG8y40.BMz@world.std.com> <KANZE.95Oct11123925@slsvgqt.lts.sel.alcatel.de> <460ibq$b0j@reuters2.mitre.org> <cspt.1?4.30867CCE@giraffe.ru.ac.za> <4662pc$kmi@ubszh.fh.zh.ubs.com> <dewar.814190504@schonberg> <46kt1q$885@fred.netinfo.com.au> <EACHUS.95Oct25183836@spectre.mitre.org> Reply-To: ncohen@watson.ibm.com NNTP-Posting-Host: rios8.watson.ibm.com