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

Home » Public Forums » archive » Error when using !NULL as a property value. Bug or feature?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Error when using !NULL as a property value. Bug or feature? [message #76441] Thu, 02 June 2011 08:56
Jason Ferrara is currently offline  Jason Ferrara
Messages: 17
Registered: February 2008
Junior Member
Given the object definition...

pro proptest::GetProperty, something=s, empty=e
s = [1,2,3]
e = []
end

PRO proptest__define
struct={proptest, INHERITS IDL_Object}
END

I can do...

IDL> p=obj_new('proptest')
% Compiled module: PROPTEST__DEFINE.
IDL> p.getproperty, something=v
IDL> print, v
1 2 3
IDL> p.getproperty, empty=v
IDL> print, v
!NULL

So far so good. Using the new IDL 8 property access syntax I can do..

IDL> v=p.something
IDL> print, v
1 2 3

but then..

IDL> v=p.empty
% Variable is undefined: <UNDEFINED>.
% Execution halted at: $MAIN$

Why is !NULL not valid in this case?

Jason Ferrara
Jacquette Consulting, Inc.
710 Providence Road
Malvern, PA 19355
jason.ferrara@jacquette.com
[Message index]
 
Read Message
Previous Topic: Pack a Float into Bytes
Next Topic: colorbar inside the plot

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

Current Time: Fri Oct 10 15:53:57 PDT 2025

Total time taken to generate the page: 1.20098 seconds