[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug? yea or nay.




Vapuser <vapuser@catspaw.jpl.nasa.gov> writes:

> I greatly simplified the structure in question to elucidate the point.
> 
> IDL> print,!version
> { mipseb IRIX unix 5.3 Nov 11 1999}
> 
> IDL> r={a:0.d, c:0L} & print,n_tags(r,/length),totsize(r)
> 16          12
> 

Nigel got it right.  The 16 includes the padding at the end of the
structure, which is needed to align the *next* structure.  The Alpha
version of IDL does the same thing.

Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------