Re: C syntax for IDL [message #7697 is a reply to message #7589] |
Tue, 10 December 1996 00:00  |
Uwe Knorr
Messages: 2 Registered: August 1996
|
Junior Member |
|
|
Charles Martin wrote:
>
> 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
> }
>
/* a few lines later */
>
> Charles Martin
> University of Texas
You took the words right out of my mouth ...
As a (mainly) C programmer it always takes me a while to switch to IDL.
(And if you do some perl in between, you may go crazy)
My tip:
Copy & Paste the HandiGuide (using a copy-machine and some glue) to your
needs.
If someone will ever change the syntax, please please be
consistant. If degree to radiant is !DTOR , then
why is the reverse !RADEG (and not !RTOD) ?
But nevertheless, if you once get used to the syntax (and
you have the HandiGuide at your fingertips)
you have a fantastic product ;-)
Uwe Knorr
----------------------------------------------------
\ Uwe Knorr
\ MNR-Klinik / Neurologie / Uni Duesseldorf
\ mailto:knorr@neurologie.uni-duesseldorf.de
\ http://www.neurologie.uni-duesseldorf.de/~knorr/
----------------------------------------------------
|
|
|