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

Home » Public Forums » archive » Re: IDL --> C++ ?
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: IDL --> C++ ? [message #32640 is a reply to message #32639] Thu, 24 October 2002 15:33 Go to previous messageGo to previous message
Justin[2] is currently offline  Justin[2]
Messages: 16
Registered: October 2002
Junior Member
Robert,

I think this might be a near impossible task for you unless you amass an
army to help, or unless you plan to implement only the most basic
implimentation.

Start with plotting. How do you plan to produce plots in C++ that will
work across different platforms? Even if you just implemented the screen
devices ('Win', 'X', 'MAC') and the 'PS' device, there would be hell of
a lot of coding needed to create a plot that looks the same as an IDL
plot. If you're considering things like widgets and pointers and object
graphics too... well I think it would be tough.

Also if you plan to do a 'simple' translation (i.e. IDL:"a=1" to
C++:"a=1;") without complicated run-time handling of variables, how will
you handle variable type (C++ is strongly typed, IDL weakly typed)? For
instance, in IDL you could happily write:
a = '123'
a = FLOAT(a)

and 'a' will change from string to float as needed. A simple translation
of this would fail in C++ since a variable cannot change type at
run-time. Similarly what about run-time creation of structures
(CREATE_STRUCT), for instance, or calling of statements created at
run-time (EXECUTE)? I think this list is endless...

Now this wouldn't be impossible (I guess IDL is written in C) but I
think it would be mighty hard. I don't think a translator is viable, and
to write an interpreter would be duplicating RSI's effort!

Regards,

Justin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MODIS Bowtie
Next Topic: Is 3D skeletonization possible in IDL?

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

Current Time: Wed Oct 08 18:22:31 PDT 2025

Total time taken to generate the page: 0.00222 seconds