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

Home » Public Forums » archive » Re: A small feature I would love to have for IDL NG
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: A small feature I would love to have for IDL NG [message #84543] Thu, 06 June 2013 11:07
Mark Piper is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
m_schellens is currently offline  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 Go to previous message
Xin Tao is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Image function: define new color table
Next Topic: Re: reading multiple FITS files from a directory

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

Current Time: Wed Oct 08 15:39:14 PDT 2025

Total time taken to generate the page: 0.00495 seconds