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

Home » Public Forums » archive » structure length doesn't add up right?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
structure length doesn't add up right? [message #4858] Sat, 19 August 1995 00:00
alexw is currently offline  alexw
Messages: 1
Registered: August 1995
Junior Member
Newsgroups:com.lang.idl





try the following program

pro teststruct
a={intnumber:0}
help,/structures,a
return
end

** Structure <3f3848>, 1 tags, length=2, refs=1:
INTNUMBER INT 0

pro teststruct
a={floatnumber:0.0 }
help,/structures,a
return
end

** Structure <3f3848>, 1 tags, length=8, refs=1:
DOUBLENUMBER DOUBLE 0.0000000

pro teststruct
a={ intnumber:0,doublenumber:0.0d }
help,/structures,a
return
end

** Structure <3f3848>, 2 tags, length=16, refs=1:
INTNUMBER INT 0
DOUBLENUMBER DOUBLE 0.0000000


notice the length=16
it shoud be 2+8=10
what is wrong?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: list widget selection policy
Next Topic: Re: WIDGET_MESSAGE keywords?

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

Current Time: Wed Oct 08 19:14:33 PDT 2025

Total time taken to generate the page: 0.00507 seconds