Obj_Isa bug [message #9576] |
Mon, 14 July 1997 00:00 |
J.D. Smith
Messages: 214 Registered: August 1996
|
Senior Member |
|
|
Hey Folks,
I have found what seems to be a bug in the Obj_Isa routine. I have the
Linux version but have confirmed also on SunOS version. The problems is
that, although the routine works for individual object references,
arrays of them seem to stump it... Here's some code that produces the
result.
IDL> x=objarr(3)
IDL> x(0)=Obj_New('IDLgrModel')
IDL> x(1)=Obj_New('IDLgrModel')
IDL> x(2)=Obj_New('IDLgrModel')
IDL> print,x
<ObjHeapVar6(IDLGRMODEL)><ObjHeapVar7(IDLGRMODEL)><ObjHeapVar8(IDLGRMODEL) >
IDL> print,Obj_Isa(x[0],'IDLgrModel')
1
IDL> print,Obj_Isa(x[1],'IDLgrModel')
1
IDL> print,Obj_Isa(x[2],'IDLgrModel')
1
IDL> print,Obj_Isa(x,'IDLgrModel')
1 32 47
Where the last two numbers are not reproduceable, and seem to depend on
many things, such as what other variables are defined (if any).
I've sent it on to RSI, but the turnaround is usually faster here.
Thanks,
JD
|
|
|