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

Home » Public Forums » archive » Re: V8.2 compilation error, works in V8.1
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: V8.2 compilation error, works in V8.1 [message #80437 is a reply to message #80436] Fri, 01 June 2012 09:43 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 6/1/12 9:51 AM, wlandsman wrote:
> We are getting many compilation errors in V8.2 for code that worked
> in V8.1. Apparently, there was a loophole in V8.1 that allowed one to
> directly access an object's variables in certain case, but now a line like
>
> self.obj2.index
>
> gives an error % Expression must be a structure in this
> context:<OBJREF
(<ObjHeapVar2(OBJ2)>)>
>
> One can always access the variable with a GETPROPERTY, and I suppose
> this might have been a "bug fix". Is there any place where one can get a
> list of the V8.2 bug fixes?

Yes, I confirm your code seems to indicate that the loophole allowing
member variable access of an object from another object's method has
been eliminated. I would count that as a bug fix, but I wish it had been
mentioned in the release notes. I think there is going to be some broken
code that will need to be updated for IDL 8.2.

Also, note that by making obj2 inherit from IDL_Object will make the
code work again on IDL 8.2, i.e., update obj2__define to:

pro obj2__define
compile_opt idl2
obj2 = { obj2, inherits IDL_Object, index:0L }
end

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DEM extraction
Next Topic: OBJ_NEW: Infinite or invalid (NaN) operands not allowed. IDL 7 vs 8 discrepancy?

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

Current Time: Wed Oct 08 19:26:42 PDT 2025

Total time taken to generate the page: 0.00395 seconds