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

Home » Public Forums » archive » printing variable and variable name
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
printing variable and variable name [message #67661] Tue, 18 August 2009 08:39
Daniel Bruynooghe is currently offline  Daniel Bruynooghe
Messages: 1
Registered: August 2009
Junior Member
Hi guys,

I wanted to write a tiny procedure which prints a variable name and
the value and a newline, the c equivalent would be a macro along the
lines - #define PRINT_DOUBLE(x) printf(#x "= %f\n", x)
but I don't know how to overcome pass - by - value.

Ideal functionality:

testVar = 1
my_print, testVar

testVar = 10
IDL>

Any suggestions?

Many thanks,

Daniel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Read BUFR Meteorological Data in IDL?
Next Topic: Re: printing variable and variable name

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

Current Time: Fri Oct 10 06:02:36 PDT 2025

Total time taken to generate the page: 0.39939 seconds