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

Home » Public Forums » archive » Re: Object-Oriented Programming Question
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: Object-Oriented Programming Question [message #10533 is a reply to message #10532] Wed, 17 December 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Peter Stoltz (pstoltz@pppl.gov) writes:

> I have finally gotten around to trying out object-oriented programming
> with IDL, and I have a question about data encapsulation.
>
> I define an object structure A that has as one of its data members
> another object B (A has a B). So far as I can tell, when one creates
> an instance of A, one cannot invoke the methods of class B through
> the syntax
>
> IDL> a=obj_new('A')
> IDL> a.b->some_method

I think the correct syntax is this:

a->b::some_method

This will search the superclass b and any of its superclasses.

> Also, is there a mailing list or anything specifically about
> object-oriented programming in IDL?

This is a good idea. I've been thinking about some kind of
programming newsletter. Maybe when I have some time...

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Help: Countlines on Win 95 version of IDL
Next Topic: resizing draw widget

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

Current Time: Tue Dec 02 09:01:39 PST 2025

Total time taken to generate the page: 1.43894 seconds