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

Home » Public Forums » archive » idl2matlab translate-o-matic
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: idl2matlab translate-o-matic [message #19060 is a reply to message #19024] Tue, 22 February 2000 00:00 Go to previous messageGo to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
In article <38B2C805.FF565716@astro.cornell.edu>,
"J.D. Smith" <jdsmith@astro.cornell.edu> wrote:
> Craig Markwardt wrote:
>> (stuff deleted)
>> If you don't believe me, try doing
>> the following (apparently simple) problem:
>>
>> * given two arrays, A and B: concatenate all but the last two
>> elements of A, with B. Don't try [A(0:n-3),B], or you will be in
a
>> world of hurt.
>>
>
> I wouldn't say a *world* or hurt. Maybe a minor planetesimal of hurt:
>
> C=n_elements(A)>2?[A[0:n_elements(A)-3],B]:B
>
> JD
>

I think that in actual implementation, two or three lines of comments
should go with the above statement. After all, the discussion was about
the professional aspects of the language :-)

Mirko


Sent via Deja.com http://www.deja.com/
Before you buy.
[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
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
Read Message
Read Message
Read Message
Previous Topic: running different IDL versions simultaneously
Next Topic: voxel_proj and seg fault

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

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

Total time taken to generate the page: 0.00217 seconds