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

Home » Public Forums » archive » Object within an Object's Structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Object within an Object's Structure [message #71281] Wed, 09 June 2010 12:12 Go to previous message
carl is currently offline  carl
Messages: 3
Registered: June 2010
Junior Member
Hello,

I am trying to make use of what OOP functionality IDL has, and I wish
to have as an object variable another object of a different type.

Is this possible? If so, how do I specify this?

I have an object type orbitingBody, and want to make an object
orbitingPair. Would this work? how would it be then coded in my init
function?

pro orbitingpair__define
struct = { orbitingPair,
planet: obj_new('orbitingbody', args)
star: obj_new('orbitingbody', args)
etc...}
end

thanks,

Carl
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Creating a sub array from an array
Next Topic: Re: Contour data with two different lon/lat grids onto the same map projection

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

Current Time: Fri Oct 10 13:25:52 PDT 2025

Total time taken to generate the page: 0.15780 seconds