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

Home » Public Forums » archive » Re: Passing objects and parenthesis... doing something wrong here?
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: Passing objects and parenthesis... doing something wrong here? [message #82682 is a reply to message #82681] Wed, 09 January 2013 08:35 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Helder,

This was a bug, but has now been fixed. However, looking at my change log, it looks like it was fixed for IDL 8.2.

Is it possible that you are running either IDL 8.1, or a beta version of IDL 8.2?

If you want, try the following code:

pro test_junk::mymethod
o1 = obj_new('idlgrplot')
o1.symbol = obj_new('idl_container')
print, o1.symbol.nlist
; % Attempt to call undefined method: 'IDL_CONTAINER::GetProperty'.
end

pro test_property_on_object
a = {test_junk, field1: 0}
a = obj_new('test_junk')
a->mymethod
end

If you get a syntax error when you save and run this, then you must be running an older version of IDL.

Hope this helps!

-Chris
ExelisVIS
p.s. you actually don't need to have a cleanup method for these objects, or call obj_destroy, because the automatic garbage collection will take care of it. :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idlwave: Breakpoints don't work
Next Topic: String to float

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

Current Time: Sat Oct 11 03:16:29 PDT 2025

Total time taken to generate the page: 0.15848 seconds