Re: A small feature I would love to have for IDL NG [message #84543] |
Thu, 06 June 2013 11:07 |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Thursday, June 6, 2013 12:32:59 AM UTC-6, Xin Tao wrote:
> I think it would be great if I could just type plot(x,y) instead of !null=plot(x,y) to get a quick plot of x-y. I don't know how many people here agree with me, but typing !null everytime I don't care about the return value is just too much work.
>
Hi Xin,
I'm all over this. In fact, I'd like any function FOO to be callable with either:
IDL> a = foo()
or
IDL> foo()
In the latter case, the return value is swallowed.
I'm still working on getting buy-in for this, though.
mp
|
|
|
Re: A small feature I would love to have for IDL NG [message #84552 is a reply to message #84543] |
Thu, 06 June 2013 04:23  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Xin Tao writes:
> I think it would be great if I could just type plot(x,y) instead of !null=plot(x,y) to get a quick plot of x-y. I don't know how many people here agree with me, but typing !null everytime I don't care about the return value is just too much work.
Oh, please don't get me started on the subject of kids today... :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: A small feature I would love to have for IDL NG [message #84553 is a reply to message #84552] |
Thu, 06 June 2013 02:53  |
m_schellens
Messages: 31 Registered: February 2005
|
Member |
|
|
Am Donnerstag, 6. Juni 2013 08:35:50 UTC+2 schrieb Xin Tao:
> I always use a=plot(x,y) instead of !null in this case, btw. But still it's not very convenient.
>
>
>
> On Thursday, June 6, 2013 2:32:59 PM UTC+8, Xin Tao wrote:
>
>> I think it would be great if I could just type plot(x,y) instead of !null=plot(x,y) to get a quick plot of x-y. I don't know how many people here agree with me, but typing !null everytime I don't care about the return value is just too much work.
>
>>
>
>>
>
>>
>
>> Xin
pl.pro:
pro pl,x,y
dummy=plot(x,y)
end
IDL> pl,x,y
Cheers,
Marc
|
|
|
Re: A small feature I would love to have for IDL NG [message #84554 is a reply to message #84553] |
Wed, 05 June 2013 23:35  |
Xin Tao
Messages: 40 Registered: April 2011
|
Member |
|
|
I always use a=plot(x,y) instead of !null in this case, btw. But still it's not very convenient.
On Thursday, June 6, 2013 2:32:59 PM UTC+8, Xin Tao wrote:
> I think it would be great if I could just type plot(x,y) instead of !null=plot(x,y) to get a quick plot of x-y. I don't know how many people here agree with me, but typing !null everytime I don't care about the return value is just too much work.
>
>
>
> Xin
|
|
|