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

Home » Public Forums » archive » Obj_Isa bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Obj_Isa bug [message #9576] Mon, 14 July 1997 00:00
J.D. Smith is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Need 2-dimensional Y versus X curve fit routine
Next Topic: Pointer Problem

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

Current Time: Wed Oct 08 15:22:04 PDT 2025

Total time taken to generate the page: 0.05421 seconds