Article View: comp.lang.misc
Article #203Re: Fortran90 and Arrays
From: Jim Giles
Date: Tue, 14 Apr 1992 08:35
Date: Tue, 14 Apr 1992 08:35
13 lines
1118 bytes
1118 bytes
In article <id.OCVO.D6A@ferranti.com>, peter@ferranti.com (Peter da Silva) writes: |> [...] |> In C, the type is bound to the identifier, so you can set up an alias |> for a collection of data that treats it as a different type. But the |> type can still be defined as the set of operations you can perform on |> that data. This is referred to in C as "type punning" and is considered |> as bad thing. Type punnung is illegal in ANSI C. Casts of pointers to/from anything but (void *) is undefined. Unions (when used for punning) are undefined. Are there any other methods? J. Giles
Technical Details
Message-ID:
<1992Apr14.083505.9432@newshost.lanl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlgReferences:
<1992Apr8.180420.9294@newshost.lanl.gov> <id.6DTO.VWK@ferranti.com> <STEPHEN.92Apr11201347@estragon.uchicago.edu> <id.OCVO.D6A@ferranti.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (Jim Giles) Subject: Re: Fortran90 and Arrays Message-ID: <1992Apr14.083505.9432@newshost.lanl.gov> Sender: news@newshost.lanl.gov Organization: Los Alamos National Laboratory References: <1992Apr8.180420.9294@newshost.lanl.gov> <id.6DTO.VWK@ferranti.com> <STEPHEN.92Apr11201347@estragon.uchicago.edu> <id.OCVO.D6A@ferranti.com> Date: Tue, 14 Apr 1992 08:35:05 GMT Lines: 13