Re: C syntax for IDL [message #7686 is a reply to message #7589] |
Wed, 11 December 1996 00:00   |
David Fenyes
Messages: 10 Registered: November 1996
|
Junior Member |
|
|
martin@uthscsa.edu (Charles Martin) writes:
>
> I program mostly in IDL, but every once and a while I program in C. I find
> the switch to be unnecessarily painful. What I would really like is an
> alternative syntax for IDL that would be C-like. For example:
>
> for i=0,10 do begin
> x(i)=i
> endfor
>
>
> Could become
>
> for (i=0; i<10; i++) {
> x[i]=i
> }
>
If this is what you want, then try yorick. It has syntax very much
like C, with all of the array-handling capabilities of IDL, and
probably better numerical libraries (LAPACK, etc. vs. Numerical
Recipes) However, it doesn't have quite the array of functions that
IDL has, and is weaker on graphing, file formats, etc.
Personally, I don't understand why, given the obvious similarities
between IDL and lisp, RSI doesn't provide a lisp syntax as an
alternative. The current kludgy syntax could easily be compiled into
lisp, and would also provide a path to producing compiled binaries
using a linkable runtime library.
--
David Fenyes University of Texas Medical School
dave@msrad71.med.uth.tmc.edu Dept. of Radiology
|
|
|