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

Home » Public Forums » archive » Re: Compiling IDL code with a C compiler
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: Compiling IDL code with a C compiler [message #40153 is a reply to message #40152] Sun, 18 July 2004 08:16 Go to previous messageGo to previous message
cedricl is currently offline  cedricl
Messages: 8
Registered: July 2004
Junior Member
David Fanning <davidf@dfanning.com> wrote
> Has anyone pointed out to you that IDL is a weakly typed
> language?

Frankly, I've always had trouble distinguishing between
strong/weak/static/dynamic typing. Looking on the Internet, they say
that C++ is weakly typed, too. How does it create a problem? If you
look at my example, I have type declarations as ""preprocessor
directives"" at the top:

; Type Declarations
;#field = fltarr(101, 101)
;#area = fltarr(101, 101)
;#sum = float(0.)

(I'm thinking of replacing those with ASSERT_TYPE, field, fltarr(101,
101) in the IDL version)

Besides, if I restrict my support of IDL syntax to a bare minimum (so
much that the user is essentially writing C with IDL syntax, but
without having to care about the interfacing), then there really
doesn't seem to be that much to the "translation" phase.

Another advantage of this approach is that the IDL code would still be
compilable directly with .compile, since the preprocessor directives
are commented. So it would be good for testing the correctness of the
code.

> Well, best of luck to you! :-)

Thank you!

Cedric
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: call_external on windows - compaq
Next Topic: Subsetting an array with user defined values

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

Current Time: Fri Nov 28 20:42:27 PST 2025

Total time taken to generate the page: 0.72184 seconds