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

Home » Public Forums » archive » C syntax for IDL
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: C syntax for IDL [message #7686 is a reply to message #7589] Wed, 11 December 1996 00:00 Go to previous messageGo to previous message
David Fenyes is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Two dimensional fast fourier transforms
Next Topic: More on Exp bugs

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

Current Time: Sat Oct 11 02:57:16 PDT 2025

Total time taken to generate the page: 1.03732 seconds