Error when using !NULL as a property value. Bug or feature? [message #76441] |
Thu, 02 June 2011 08:56 |
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
|
|
|