comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Can you do 'unions' with pv-wave?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can you do 'unions' with pv-wave? [message #3177 is a reply to message #3176] Mon, 21 November 1994 17:47 Go to previous messageGo to previous message
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
jgavin@mksol.dseg.ti.com (Jeffrey S. Gavin) writes:

> Is there a way to have a single variable viewed as multiple types, similar
> to the way unions work in C. For example:
. . .
> In other words, the characters '\0','A' were interpreted as a single integer.
> I'm trying to reference a single variable (i.e. 'm') as different types, without
> having to make a copy.

You can come close. Check out Type Conversion in the User's Guide.
A subsection called Extracting Fields describes how to do what you
want (or as close as possible in IDL).

Ray Sterner sterner@tesla.jhuapl.edu
The Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
WWW Home page: ftp://fermi.jhuapl.edu/www/s1r/people/res/res.html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: ** REQUEST ** for a list of well known bugs on SGI with prop' products
Next Topic: Re: Eigensystems in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 19:25:57 PDT 2025

Total time taken to generate the page: 0.39862 seconds